@rspack/core downloads · last 12 months
The @rspack/core package provides a Rust-based bundler for web projects, with a modernized webpack API. It compiles application modules and assets into deployable output, addressing the build step that connects JavaScript, TypeScript, JSX, and other project inputs. Its stated focus is bundling and compilation for web development rather than serving as a general-purpose runtime.
Rspack’s design combines Rust-based implementation with an API intended to be familiar to webpack users. That approach is relevant to teams that want to work with established bundler concepts while adopting Rspack’s toolchain; the package is categorized as a bundler and is associated with loaders, ESM, JavaScript, JSX, and TypeScript. The intended audience includes developers configuring web builds and maintaining integrations around compilation.
The package is used through its core bundler APIs and configuration patterns, including entry and output configuration, module rules, loaders, and plugins. These mechanisms let a build describe which modules to process, how to transform them, and what artifacts to emit; webpack-oriented familiarity can help when translating an existing setup, though compatibility should be checked against the specific configuration and plugin behavior required.
Rspack fits into web application build workflows that need module bundling and transformations for JavaScript, TypeScript, or JSX. It can serve as the compiler layer in a project’s development and production build commands, with loaders and plugins providing integration points for file handling and build extensions; the provided package details do not specify particular framework integrations or compatibility guarantees.
The package is version 2.3.4, has an unpacked size of 1.9 MB, and a reported gzip bundle size of 115.8 kB. Its Rust-based implementation is part of its performance-oriented design, but those size figures alone do not establish application build speed or final output size, which depend on project inputs and configuration; weigh them alongside measurements from your own build workflow.
The package is MIT-licensed and reports 12.8M weekly downloads, 13.0K GitHub stars, 884 forks, and 244 open issues, with a last-updated date of 2026-11-24. Treat those figures as package metadata rather than guarantees of support or compatibility, and verify required loaders, plugins, and webpack API behavior before migrating a production build.
- When replacing a webpack-oriented web build, map existing entry and output configuration to Rspack’s core configuration and verify the required behavior.
- When processing JavaScript, TypeScript, or JSX modules, define module rules and connect the needed transformations through loaders.
- When a build needs custom compilation behavior, use the plugin extension pattern supported by the Rspack configuration.
- When bundling ESM-based web code, evaluate Rspack as the module bundler and test the generated output in the target workflow.
- When you want a Rust-based bundler with a modernized webpack API, trial @rspack/core against representative development and production builds.
- When integrating compilation into existing web build commands, use the core package as the bundling layer and validate its loaders and plugins against the project’s requirements.
- If a required webpack plugin or configuration behavior has not been verified with Rspack, retain the existing build tool or test the integration in a migration branch first.
- If your workflow needs a bundler-independent task runner rather than module compilation, use a build orchestration approach that does not center on Rspack’s bundling APIs.
- If you need a framework-specific integration that is not established in your project, choose a framework-supported build workflow or validate the integration before adopting @rspack/core.
- If you cannot introduce or maintain module rules and loader configuration, use a build workflow with the transformations you need already configured.
- If your project has no web modules or assets to bundle, use a task-specific process instead of adding a web bundler to the build.
- If build performance is the deciding factor, benchmark Rspack with your actual entries, loaders, and plugins before switching; the provided package size figures do not predict build duration.
CORRECTIONS
Spot wrong data here?Spot wrong data on this page?
A short note helps us fix it.A short note helps us fix it. We read every one; confirmed fixes ship in the next nightly build.
Anonymous · No account · No email back