For AI agents: the complete documentation index is available at https://rspack.rs/llms.txt, the full documentation bundle is available at https://rspack.rs/llms-full.txt, and this page is available as Markdown at https://rspack.rs/contribute/development/building.md.
close

Building

Please see prerequisites for setting up Rust and Node.js.

Install Node.js dependencies

Install Node.js dependencies via pnpm.

# enable pnpm with corepack
corepack enable

# Install dependencies
pnpm i

Building Rspack

  • Run cargo build to compile Rust code.
  • Run pnpm run build:cli:dev to compile both Node.js and Rust code.
  • If you want to build Rspack Wasm, run pnpm run build:cli:dev:wasm.

The built binary is located at packages/rspack-cli/bin/rspack.