You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/tutorial/0-intro.md
+5-11Lines changed: 5 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,26 +48,20 @@ chart.initializing.then(
48
48
)
49
49
```
50
50
51
-
### Working with Bundlers, changing the location of the WASM module
51
+
### Working with bundlers & frameworks
52
52
53
53
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.
56
55
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.
60
57
61
58
```Javascript { "run": false }
62
59
Vizzu.options({ wasmUrl:"/path/to/cvizzu.wasm" })
63
60
```
64
61
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.
67
63
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:
0 commit comments