Skip to main content

Installation

This guide walks you through installing rust-wasmpack-loader.

Prerequisites​

tip

For toolchain setup, see the Prerequisites Guide.

Version compatibility​

Pick the loader version that matches your toolchain.

rust-wasmpack-loaderWebpack-nodeWebpack-webBunNode.jsRust
4.x.x^5.0.0^5.0.01.x.x>=22.22.2>=1.88.0
3.x.x^5.0.0^5.0.01.x.x>=20.0.0>=1.85.1
2.x.x^5.0.0^5.0.0❌>=16.0.0>=1.30.0
1.x.x^5.0.0❌❌>=16.0.0>=1.30.0
0.x.x⚠️❌❌>=14.0.0>=1.30.0

Install the package​

Install rust-wasmpack-loader with your package manager. Drop the dev flag if you need it as a regular dependency.

npm install rust-wasmpack-loader
# or install as dev dependency
npm install --save-dev rust-wasmpack-loader

Next steps​

With the loader installed, here is where to go next:


info

Questions or bugs? Open an issue on GitHub.