Node.js projects using wasm-pack
# pages-help
s
Is there anything special that needs to be done to get projects which use wasm-pack to work with pages? Is git based deployment supported? Should I be trying to use Wrangler? Something else?
For anyone curious, this is gross and I expect there's a better way (so still keen to hear from people), but this command
Copy code
sh -c "curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain none" && source ~/.cargo/env && rustup default stable && sh -c "curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh" && npm run wasm && npm run build
actually managed to get it to deploy. Woot!
npm run wasm is a script I have in my package.json that runs wasm-pack