Uses wasm-pack
and wasm-pack-plugin
to compire Rust code to wasm and load it in the svelte project
Had to use webpack instead of rollup due to more mature wasm support
Check it out at richodemus.github.io/svelte-rust-wasm
npm install
# Builds the project and opens it in a new browser tab. Auto-reloads when the project changes.
npm run dev
# Builds the project and places it into the `dist` folder.
npm run build
npm run build && npm run deploy
# Runs tests in Firefox
npm test -- --firefox
# Runs tests in Chrome
npm test -- --chrome
# Runs tests in Safari
npm test -- --safari