Skip to content

Commit 89ffec4

Browse files
authored
Check bundlers chapter
1 parent 26a83ca commit 89ffec4

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

docs/content/tutorial/0-intro.md

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,26 +48,20 @@ chart.initializing.then(
4848
)
4949
```
5050

51-
### Working with Bundlers, changing the location of the WASM module
51+
### Working with bundlers & frameworks
5252

5353
The published Vizzu package contains a Javascript (*vizzu.min.js*) and a
54-
WebAssembly (*cvizzu.wasm*) module. By default, the Javascript module tries to
55-
load the wasm module from the same path, it was imported from.
54+
WebAssembly (*cvizzu.wasm*) module. By default, the Javascript module tries to load the wasm module from the same path it was imported from.
5655

57-
This behaviour won't work well with bundlers, if they move the wasm file to a
58-
different folder. To handle this case, the location of the wasm module can be
59-
set for the library.
56+
This behavior won't work with bundlers if they move the wasm file to a different folder. To handle this issue, you can manually set the wasm module's location.
6057

6158
```Javascript { "run": false }
6259
Vizzu.options({ wasmUrl: "/path/to/cvizzu.wasm" })
6360
```
6461

65-
> Note: this should be set before the Vizzu constructor called, since it will
66-
> load the wasm module.
62+
> Note: you should set this path before the Vizzu constructor is called because it loads the wasm module.
6763
68-
Different Bundlers will need additional bundler specific settings to recognize
69-
the wasm file as dependency and to handle it correctly. For setting up Vizzu
70-
with a specific bundler or framework, see the corresponding howto/example below:
64+
Different bundlers will need additional, specific settings to recognize the wasm file as a dependency and handle it correctly. For setting up Vizzu with a specific bundler or framework, check the corresponding how-to/example below:
7165

7266
- Webpack: https://github.com/vizzuhq/vizzu-webpack-demo
7367
- React: https://vizzuhq.github.io/vizzu-react-example/

0 commit comments

Comments
 (0)