Required packages:
# One-time setup if you haven’t already
rustup target add wasm32-unknown-unknown
cargo install wasm-pack # or brew install wasm-pack
npm install -g npm # any recent Node 18+ is fine
Build Bevy
cd bevy
wasm-pack build --dev --target web --out-dir ../ts-app/pkg
Build Frontend
cd ts-app
npm install # only once
npm run dev