- From the root directory, run
./scripts/build-wasm.sh <scope>
where<scope>
is the scope name of the package,
- Run
./scripts/create-global-links.sh
, this will create global npm packages under the scope specified when running build script. - Run
npm link @<scope>/<package-name>
in project directory. Thenimport {...} from @<scope>/<package-name>
in project files.
- Projects that import the packages must be using a bundler that supports WASM modules. E.g. Webpack 5 with experimental features.