Plugins of SWC, written in rust.
- keep-export
- keep-platform
- remove-export
-
Make sure cargo installed in your device.
-
Run
cargo install
in the root of project. -
Add wasm32-wasi as a target
-
rustup target add wasm32-wasi
-
- Check to the target directory.
- Run
npm run prepublishOnly
to build.wasm
file. - Write CHANGELOG and
npm publish