- vite-plugin-rsw - 🦀 wasm-pack plugin for Vite
- rsw-rs - 🦞 wasm-pack based build tool
- WebAssembly Series
- learn-wasm
# https://github.com/lencx/create-mpl
# npm 6.x
npm init mpl@latest my-app --type wasm
# npm 7+, extra double-dash is needed:
npm init mpl@latest my-app -- --type wasmStep1: Install deps
yarnStep2: Init rsw.toml
# yarn rsw -h
yarn rsw initStep3: Generate rust crate
yarn rsw new rsw-helloStep4: Edit rsw.toml
[[crates]]
#! npm package name
name = "rsw-hello"
#! ⚠️ Note: must be set to `true`
#! run `npm link`: `true` | `false`, default is `false`
link = trueStep5: Run rsw watch
⚠️ Note: Do not exit the process after the command has started.
yarn watchStep6: Run dev
yarn devStep7: Deploy
yarn build