@oicana/browser-wasm
v0.2.0
Published
Oicana integration for WASM in the browser.
Readme
Oicana browser WASM
Inner WASM integration. End users most likely should use @oicana/browser instead.
Development
oicana_browser_wasm can be compiled into an npm package with wasm-pack build --release --target web --scope oicana integrations/browser/oicana_browser_wasm. After building, pack it with npm pack in the pkg directory.
The typescript library oicana-browser wraps the WASM package in a nicer API.
- Update the dependency in
package.jsonto the new file. npm inpm build
Linking
For faster development, npm link can be used to try out changes. Build quickly after changes with wasm-pack build --release --target web --scope oicana integrations/browser/oicana_browser_wasm --no-opt then:
- Update the package name in
pkg/package.jsonto be@oicana/browser-wasm - Run
npm linkin/pkg - In
../oicana-browser
npm link @oicana/browser-wasmnpm run buildnpm link
- In the end-user project run
npm link @oicana/browser-wasm @oicana/browser
