- 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 wasm
Step1: Install deps
yarn
Step2: Init rsw.toml
# yarn rsw -h
yarn rsw init
Step3: Generate rust crate
yarn rsw new rsw-hello
Step4: 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 = true
Step5: Run rsw watch
⚠️ Note: Do not exit the process after the command has started.
yarn watch
Step6: Run dev
yarn dev
Step7: Deploy
yarn build