# Rspack > Fast Rust-based bundler for the web with a modernized webpack API ## Guide - [Introduction](https://rspack.rs/guide/start/introduction.md): Learn about Rspack’s features and the Rstack toolchain. - [Quick start](https://rspack.rs/guide/start/quick-start.md): Use Rsbuild for web applications, Rslib for JavaScript libraries, or Rspack CLI for custom build workflows. Learn about environment requirements and manual installation. - [Ecosystem](https://rspack.rs/guide/start/ecosystem.md): Explore the Rstack toolchain and community integrations in the Rspack ecosystem - [AI](https://rspack.rs/guide/start/ai.md): Set up AI coding tools with Rspack Agent Skills, Markdown documentation, llms.txt, and AGENTS.md. - [Plugins](https://rspack.rs/guide/features/plugin.md): Use, write, and publish Rspack plugins, including plugin structure, TypeScript support, and peer dependencies. - [Loader](https://rspack.rs/guide/features/loader.md): Configure loaders to transform modules, combine multiple loaders, pass options, and use custom or built-in loaders. - [Dev server](https://rspack.rs/guide/features/dev-server.md): @rspack/dev-server provides local development server support for Rspack CLI, including HMR and proxying. - [Asset modules](https://rspack.rs/guide/features/asset-module.md): Rspack has built-in support for assets (e.g. images, fonts, videos, etc.), which means you don't need any loader to process them - [Asset base path](https://rspack.rs/guide/features/asset-base-path.md): Rspack provides the output.publicPath option, which sets the base URL path prefix for bundled static assets (such as JS, CSS, images, etc.) - [Module resolution](https://rspack.rs/guide/features/module-resolution.md): Module resolution is the process of converting a module identifier to a module's file path - [Web Workers](https://rspack.rs/guide/features/web-workers.md): Rspack provides built-in support for Web Workers, which means you don't need any loader to use Web Workers directly - [ESM output](https://rspack.rs/guide/features/esm.md): Build applications and libraries with ESM output, including output.module, chunk formats, and related configuration. - [Module Federation](https://rspack.rs/guide/advanced/module-federation.md): Share modules between applications with Module Federation and choose between its v2.0, v1.5, and v1.0 integrations in Rspack. - [Lazy compilation](https://rspack.rs/guide/advanced/lazy-compilation.md): Lazy compilation is an effective strategy to improve the startup performance of the development phase - [Barrel file optimization](https://rspack.rs/guide/advanced/lazy-barrel.md): Learn how Rspack optimizes barrel files by skipping the build of unused re-export modules. - [Module layers](https://rspack.rs/guide/advanced/layer.md): Learn how module layers categorize dependency trees for layer-specific rules, compilation targets, and code splitting. - [SWC loader](https://rspack.rs/guide/builtin-loaders/swc-loader.md): Configure builtin:swc-loader for TypeScript and JSX transpilation, syntax lowering, polyfills, and SWC plugins. - [Lightning CSS loader](https://rspack.rs/guide/builtin-loaders/lightningcss-loader.md): Configure builtin:lightningcss-loader to transform CSS for target browsers, add vendor prefixes, and handle parsing errors. - [TypeScript](https://rspack.rs/guide/languages/typescript.md): Configure TypeScript transpilation, separate type checking, isolatedModules, TSX, path aliases, and client types in Rspack. - [CSS](https://rspack.rs/guide/languages/css.md): Configure built-in CSS support or CSS loaders, CSS Modules, PostCSS, Sass, Less, and Tailwind CSS in Rspack. - [HTML](https://rspack.rs/guide/languages/html.md): Generate HTML with Rspack using the built-in Rust plugin or a JavaScript plugin compatible with html-webpack-plugin. - [JSON](https://rspack.rs/guide/languages/json.md): Import JSON files in Rspack using default imports, named imports where supported, and import attributes. - [React](https://rspack.rs/guide/integrations/react.md): Configure React JSX/TSX, Fast Refresh, React Compiler, and SVG components with Rspack. - [React Server Components](https://rspack.rs/guide/integrations/rsc.md): Build React Server Components with Rspack, including plugins, client and server entries, module layers, and dev server setup. - [Preact](https://rspack.rs/guide/integrations/preact.md): Configure Preact JSX/TSX compilation with builtin:swc-loader and enable Preact Refresh during development. - [Vue](https://rspack.rs/guide/integrations/vue.md): Configure Vue 2 and Vue 3 with rspack-vue-loader, including Vue 3 JSX and Vue DevTools integration. - [Next.js](https://rspack.rs/guide/integrations/next.md): Use the experimental next-rspack plugin to build Next.js applications with Rspack and customize the bundler configuration. - [Node.js applications](https://rspack.rs/guide/integrations/node.md): Use Rspack to build Node.js applications, covering runtime targets, external dependencies, development scripts, and native addons. - [NestJS](https://rspack.rs/guide/integrations/nestjs.md): Use NestJS with Rspack, including setup, TypeScript decorators, development HMR, and production minification. - [Solid](https://rspack.rs/guide/integrations/solid.md): Build Solid applications with Rsbuild or configure babel-loader and the Solid Babel preset directly in Rspack. - [Svelte](https://rspack.rs/guide/integrations/svelte.md): Build Svelte applications with Rsbuild or configure svelte-loader directly in Rspack. - [Rstest](https://rspack.rs/guide/integrations/rstest.md): Integrate Rstest with Rspack projects for unit and end-to-end testing. - [Production optimization](https://rspack.rs/guide/optimization/production.md): Optimize Rspack production builds with code splitting, tree shaking, and minification. - [Code splitting](https://rspack.rs/guide/optimization/code-splitting.md): Rspack supports code splitting, letting you divide your code into separate chunks - [Tree shaking](https://rspack.rs/guide/optimization/tree-shaking.md): Rspack supports tree shaking, a term commonly used in the JavaScript ecosystem for removing unused code, also known as "dead code" - [Bundle analysis](https://rspack.rs/guide/diagnostics/analysis.md): Analyze Rspack bundle output, duplicate dependencies, and module relationships with Rsdoctor and other analysis tools. - [Build performance profiling](https://rspack.rs/guide/diagnostics/profile.md): Profile Rspack build performance, identify common bottlenecks, and tune worker thread settings. - [Memory analysis](https://rspack.rs/guide/diagnostics/memory.md): Capture Rspack memory snapshots during builds and HMR updates for issue reports. - [Runtime issues](https://rspack.rs/guide/diagnostics/runtime-issues.md): Troubleshoot runtime issues in applications built with Rspack, including chunk loading failures and deployment-related errors. - [Use Rsdoctor](https://rspack.rs/guide/diagnostics/use-rsdoctor.md): Use Rsdoctor to analyze Rspack build output and performance. - [Upgrading from v1 to v2](https://rspack.rs/guide/migration/rspack_1.x.md): Migrate from Rspack 1.x to 2.0, including Node.js requirements, ESM packages, changed defaults, and configuration and plugin changes. - [Upgrading from 0.x to v1](https://rspack.rs/guide/migration/rspack_0.x.md): Migrate from Rspack 0.7 to 1.0, covering changed defaults, removed options, and SWC loader, plugin, and CLI updates. - [Migrate from webpack](https://rspack.rs/guide/migration/webpack.md): Rspack's configuration is designed based on webpack, enabling you to migrate your project from webpack to Rspack with ease - [Migrate from Create React App](https://rspack.rs/guide/migration/cra.md): Migrate a Create React App application to Rspack through Rsbuild and its migration guide. - [Migrate from Storybook webpack](https://rspack.rs/guide/migration/storybook.md): Migrate React or Vue Storybook projects from webpack 5 to storybook-rsbuild by updating dependencies and build configuration. - [Branding guideline](https://rspack.rs/misc/branding/guideline.md): Here you can find the branding guideline, assets and license for the project ## Config - [Configure Rspack](https://rspack.rs/config/index.md): Rspack configuration overview covering core options, output behavior, optimization, development, and tooling settings. - [Filename placeholders](https://rspack.rs/config/filename-placeholders.md): Rspack's filename-related options support placeholders - [Cache](https://rspack.rs/config/cache.md): Configure Rspack's cache strategy, including disabled cache, memory cache, and persistent cache - [Context](https://rspack.rs/config/context.md): The context configuration is used to set the base directory for Rspack builds - [DevServer](https://rspack.rs/config/dev-server.md): Configure @rspack/dev-server for local development and preview. - [Devtool](https://rspack.rs/config/devtool.md): Learn how to configure source maps for development and production and what each devtool modifier does. - [Entry](https://rspack.rs/config/entry.md): Rspack entry configuration reference covering single and multiple entries, dynamic entry functions, and entry description options. - [Experiments](https://rspack.rs/config/experiments.md): Configure experimental Rspack features, including WebAssembly and HTTP imports, and review their stability restrictions. - [Extends](https://rspack.rs/config/extends.md): Extend and merge configuration files or packages with the extends option, available only in @rspack/cli. - [Externals](https://rspack.rs/config/externals.md): Externals specify which modules Rspack should not bundle, and instead read directly from implementations provided by the external environment. - [Incremental](https://rspack.rs/config/incremental.md): Whether to reuse unaffected intermediate results during development rebuilds and HMR. - [InfrastructureLogging](https://rspack.rs/config/infrastructure-logging.md): Options for infrastructure level logging. Generally used for logs unrelated to the Compilation - [LazyCompilation](https://rspack.rs/config/lazy-compilation.md): Lazy Compilation is an optimization technique that delays the compilation of modules until they are actually requested - [Mode](https://rspack.rs/config/mode.md): The mode configuration is used to set the build mode of Rspack to enable the default optimization strategy - [Module](https://rspack.rs/config/module.md): Configure module processing with default rules, custom rules, parser and generator options, and noParse exclusions. - [Module generator](https://rspack.rs/config/module-generator.md): Configure module.generator to control asset filenames and URLs, CSS Modules exports, and JSON output generation. - [Module parser](https://rspack.rs/config/module-parser.md): Configure module.parser for JavaScript, CSS, JSON, and assets to control dependency collection and syntax handling. - [Module rules](https://rspack.rs/config/module-rules.md): module.rules defines how Rspack processes different types of modules during the build - [Node](https://rspack.rs/config/node.md): The following Node.js options configure whether to polyfill or mock certain Node.js globals - [Optimization](https://rspack.rs/config/optimization.md): Configure tree shaking, minification, module and chunk IDs, Rspack runtime extraction, and code splitting in Rspack. - [Output](https://rspack.rs/config/output.md): Configure output paths, filenames, public URLs, module and library formats, chunk loading, and hashing. - [Performance](https://rspack.rs/config/performance.md): performance configures Rspack's performance hint mechanism, helping you identify oversized outputs during the build - [Plugins](https://rspack.rs/config/plugins.md): Register built-in or compatible webpack plugins through the plugins option and conditionally disable plugins. - [Resolve](https://rspack.rs/config/resolve.md): Configure module resolution with aliases, extensions, package conditions, search directories, and TypeScript paths. - [ResolveLoader](https://rspack.rs/config/resolve-loader.md): Configure loader resolution with resolveLoader, including loader aliases and package entry defaults. - [Stats](https://rspack.rs/config/stats.md): Configure stats presets and the assets, chunks, modules, errors, warnings, and logs included in build reports. - [Target](https://rspack.rs/config/target.md): Configure the runtime environment and ECMAScript compatibility of Rspack output. - [Watch](https://rspack.rs/config/watch.md): Rspack can watch files and recompile whenever they change - [Other options](https://rspack.rs/config/other-options.md): These are the remaining configuration options supported by rspack - [Deprecated options](https://rspack.rs/config/deprecated-options.md): lists configuration options that have been deprecated in Rspack ## Plugin - [Rspack plugins](https://rspack.rs/plugins/index.md): Browse all documented Rspack plugins by function, with concise descriptions and links to each reference page. - [BannerPlugin](https://rspack.rs/plugins/banner-plugin.md): Inserts custom content at the beginning or end of generated chunk files - [CopyRspackPlugin](https://rspack.rs/plugins/copy-rspack-plugin.md): Copies individual files or entire directories, which already exist, to the build directory - [CssExtractRspackPlugin](https://rspack.rs/plugins/css-extract-rspack-plugin.md): Extracts CSS processed by css-loader into separate CSS files - [HtmlRspackPlugin](https://rspack.rs/plugins/html-rspack-plugin.md): Generates HTML files and injects entry scripts, styles, and configured tags - [SubresourceIntegrityPlugin](https://rspack.rs/plugins/subresource-integrity-plugin.md): The rspack.SubresourceIntegrityPlugin is a plugin for enabling Subresource Integrity in Rspack - [CompactHashedChunkIdsPlugin](https://rspack.rs/plugins/compact-hashed-chunk-ids-plugin.md): CompactHashedChunkIdsPlugin assigns compact ids using the shortest available prefixes of stable lowercase alphanumeric hashes to shrink bundles and speed runtime indexing - [CompactHashedModuleIdsPlugin](https://rspack.rs/plugins/compact-hashed-module-ids-plugin.md): CompactHashedModuleIdsPlugin assigns compact ids using the shortest available prefixes of stable alphanumeric hashes to shrink bundles and speed runtime indexing - [CssChunkingPlugin](https://rspack.rs/plugins/css-chunking-plugin.md): CssChunkingPlugin is a plugin specifically designed for CSS code splitting - [DeterministicChunkIdsPlugin](https://rspack.rs/plugins/deterministic-chunk-ids-plugin.md): Assign short numeric chunk ids that stay stable between compilations - [DeterministicModuleIdsPlugin](https://rspack.rs/plugins/deterministic-module-ids-plugin.md): Assign short numeric module ids that stay stable between compilations - [DllPlugin](https://rspack.rs/plugins/dll-plugin.md): The DllPlugin is used in a separate rspack configuration exclusively to create a dll-only-bundle - [DllReferencePlugin](https://rspack.rs/plugins/dll-reference-plugin.md): The DllReferencePlugin is used to reference the dll-only-bundle to require pre-built dependencies - [LightningCssMinimizerRspackPlugin](https://rspack.rs/plugins/lightning-css-minimizer-rspack-plugin.md): This plugin uses lightningcss to minify CSS assets - [LimitChunkCountPlugin](https://rspack.rs/plugins/limit-chunk-count-plugin.md): Limit the number of output chunks by merging chunks with LimitChunkCountPlugin and its maxChunks option. - [RuntimeChunkPlugin](https://rspack.rs/plugins/runtime-chunk-plugin.md): Creates separate Rspack runtime chunks and controls how they are named. - [SplitChunksPlugin](https://rspack.rs/plugins/split-chunks-plugin.md): Configure optimization.splitChunks to extract shared modules, define cache groups, and control chunk sizes and loading limits. - [SwcJsMinimizerRspackPlugin](https://rspack.rs/plugins/swc-js-minimizer-rspack-plugin.md): This plugin is used to minify JavaScript files using SWC - [ContextReplacementPlugin](https://rspack.rs/plugins/context-replacement-plugin.md): Restrict or redirect the modules available to dynamic require and import() contexts. - [DefinePlugin](https://rspack.rs/plugins/define-plugin.md): The DefinePlugin replaces variables in your code with other values or expressions at compile time - [EntryPlugin](https://rspack.rs/plugins/entry-plugin.md): Adds an entry chunk on compilation. The chunk is named options.name and contains only one module (plus dependencies) - [EnvironmentPlugin](https://rspack.rs/plugins/environment-plugin.md): Use EnvironmentPlugin to expose selected process.env values to bundled code with optional defaults - [ExternalsPlugin](https://rspack.rs/plugins/externals-plugin.md): Keep selected dependencies out of the bundle and control how they are loaded at runtime with ExternalsPlugin. - [IgnorePlugin](https://rspack.rs/plugins/ignore-plugin.md): Ignore selected imports so their modules are not resolved or included in the bundle. - [JavascriptModulesPlugin](https://rspack.rs/plugins/javascript-modules-plugin.md): Handles the bundling of JavaScript, usually used to access the hooks of the JavascriptModulesPlugin: - [ModuleFederationPlugin](https://rspack.rs/plugins/module-federation-plugin.md): ModuleFederationPlugin enables Module Federation in Rspack - [ModuleFederationPluginV1](https://rspack.rs/plugins/module-federation-plugin-v1.md): This plugin corresponds to Module Federation v1.0, which is the ModuleFederationPlugin in webpack - [NormalModuleReplacementPlugin](https://rspack.rs/plugins/normal-module-replacement-plugin.md): The NormalModuleReplacementPlugin allows you to replace resources that match resourceRegExp with newResource - [ProvidePlugin](https://rspack.rs/plugins/provide-plugin.md): Automatically load modules instead of having to import or require them everywhere - [VirtualModulesPlugin](https://rspack.rs/plugins/virtual-modules-plugin.md): Create virtual files in memory with VirtualModulesPlugin and update their contents dynamically using writeModule. - [CaseSensitivePlugin](https://rspack.rs/plugins/case-sensitive-plugin.md): Detect case sensitivity conflicts in referenced module names and emit warnings - [CircularCheckRspackPlugin](https://rspack.rs/plugins/circular-check-rspack-plugin.md): Reports circular import dependencies collected from the Rspack module graph - [EvalSourceMapDevToolPlugin](https://rspack.rs/plugins/eval-source-map-dev-tool-plugin.md): This plugin enables more fine grained control of source map generation - [HotModuleReplacementPlugin](https://rspack.rs/plugins/hot-module-replacement-plugin.md): Enable hot module replacement (HMR) in Rspack to update modules during development without reloading the page. - [NoEmitOnErrorsPlugin](https://rspack.rs/plugins/no-emit-on-errors-plugin.md): Prevents Rspack from emitting assets when a compilation contains errors. - [ProgressPlugin](https://rspack.rs/plugins/progress-plugin.md): This plugin can be used to configure the progress bar - [SourceMapDevToolPlugin](https://rspack.rs/plugins/source-map-dev-tool-plugin.md): This plugin enables more fine grained control of source map generation - [Low-level plugins](https://rspack.rs/plugins/low-level-plugins.md): Publicly exposed low-level Rspack plugins for target presets, Rspack runtime templates, child compilers, and higher-level plugins. - [Community plugin compatibility](https://rspack.rs/plugins/community-plugin-compatibility.md): Check Rspack compatibility with common webpack community plugins. - [webpack plugin compatibility](https://rspack.rs/plugins/webpack-built-in-plugin-support.md): Check Rspack compatibility with webpack built-in plugin APIs and selected internal plugins. - [CircularDependencyRspackPlugin](https://rspack.rs/plugins/circular-dependency-rspack-plugin.md): Detects circular import dependencies between modules that will exist at runtime ## API - [Introduction](https://rspack.rs/api/index.md): Rspack API overview covering the CLI, JavaScript API, Loader API, Plugin API, and Rspack runtime capabilities. - [Command line interface](https://rspack.rs/api/cli.md): @rspack/cli is the command line tool for Rspack, providing a variety of commands to make working with Rspack easier - [Module methods](https://rspack.rs/api/runtime-api/module-methods.md): This section covers all methods available in code compiled with Rspack - [Module variables](https://rspack.rs/api/runtime-api/module-variables.md): This section covers all variables available in code compiled with Rspack - [Hot module replacement](https://rspack.rs/api/runtime-api/hmr.md): Rspack provides the same interface as webpack for implementing HMR - [JavaScript API](https://rspack.rs/api/javascript-api/index.md): Rspack JavaScript API overview covering compiler creation, watch mode, stats access, and programmatic build workflows. - [JavaScript API architecture](https://rspack.rs/api/javascript-api/architecture.md): Rspack exposes a webpack-compatible JavaScript API through @rspack/core, while most compilation work runs in Rust. The two layers communicate through a Node-API binding. Module, NormalModule, ConcatenatedModule, ContextModule, and ExternalModule are JavaScript classes exported by @rspack/core. The four specialized classes extend Module, so their instances also satisfy instanceof Module and inherit its methods. Prototype methods and getters are non-enumerable, following standard JavaScript class behavior. Rspack creates these objects during compilation and attaches a native handle with Node-API. Constructing a class yourself does not attach a native module; methods that need compilation data require an instance supplied by Rspack. Each constructor initializes its own properties. Common own properties are installed before properties specific to a derived class. identifier() caches its result in a private field rather than an own symbol property. Accessors and methods that use private fields require an instance from the same core copy. originalSource() and emitFile() convert JavaScript Source objects and call native binding functions directly. Module fields such as type, resource, request, and loaders call Rust on their first successful read and cache the result in private fields. Their own accessors remain unchanged, so sealing or freezing a Module does not prevent its lazy fields from being read. Cached values remain readable after the native module is removed; reading an uncached field still requires a valid native module. Live accessors such as context, matchResource, and buildInfo, and methods such as size(), call Rust through the attached handle. The binding package declares its own structural Module interface without depending on @rspack/core; core adds the JavaScript-only source method types. JavaScript inheritance does not extend the lifetime or writable phases of the native module. - [Compiler](https://rspack.rs/api/javascript-api/compiler.md): Compiler and MultiCompiler APIs for running, watching, and closing builds, creating child compilers, and accessing filesystems. - [Compilation](https://rspack.rs/api/javascript-api/compilation.md): Compilation API for managing assets, modules, dependencies, diagnostics, Rspack runtime modules, and child compilers. - [Stats](https://rspack.rs/api/javascript-api/stats.md): Inspect build results with Stats and MultiStats, check errors and warnings, and export JSON or formatted text. - [Stats JSON](https://rspack.rs/api/javascript-api/stats-json.md): Generate stats JSON and inspect its compilation, asset, chunk, module, entrypoint, diagnostic, and logging fields. - [Logger](https://rspack.rs/api/javascript-api/logger.md): Write logs from Rspack plugins and loaders with the Logger API, including log levels, grouping, timing, and child loggers. - [Cache](https://rspack.rs/api/javascript-api/cache.md): Cache data across compilations in JavaScript plugins with getCache, cache identifiers, etags, and child caches. - [SWC API](https://rspack.rs/api/javascript-api/swc.md): Rspack uses SWC under the hood to transform and minify JavaScript code, and experimentally exposes some SWC JavaScript APIs through rspack.experiments.swc - [Resolver API](https://rspack.rs/api/javascript-api/resolver.md): Resolve module paths synchronously or asynchronously with the experimental rspack.experiments.resolver API and ResolverFactory. - [Browser API](https://rspack.rs/api/javascript-api/browser.md): @rspack/browser is a version of Rspack specifically designed for browser environments, without relying on WebContainers or any particular platform - [Overview](https://rspack.rs/api/loader-api/index.md): Rspack Loader API overview covering loader context, inline syntax, and writing custom loaders for module transforms. - [Writing loaders](https://rspack.rs/api/loader-api/writing-loaders.md): Learn how to create custom loaders for Rspack to transform files - [Loader context](https://rspack.rs/api/loader-api/context.md): The loader context represents the properties that are available inside of a loader assigned to the this property - [Inline loaders](https://rspack.rs/api/loader-api/inline.md): It's possible to specify loaders in an import statement, or any equivalent "importing" method - [Inline matchResource](https://rspack.rs/api/loader-api/inline-match-resource.md): Inline matchResource allows you to dynamically change the matching rules when loading resources - [Overview](https://rspack.rs/api/plugin-api/index.md): Rspack plugin API overview covering hook categories, compatibility status, and patterns for writing compatible plugins. - [Compiler hooks](https://rspack.rs/api/plugin-api/compiler-hooks.md): Compiler hooks allow Rspack plugins to intervene at specific stages of the build process - [Compilation hooks](https://rspack.rs/api/plugin-api/compilation-hooks.md): Compilation hooks are the primary extension method for Rspack plugins - [NormalModuleFactory](https://rspack.rs/api/plugin-api/normal-module-factory-hooks.md): NormalModuleFactory is used by the Compiler to generate modules (NormalModule) - [ContextModuleFactory](https://rspack.rs/api/plugin-api/context-module-factory-hooks.md): The ContextModuleFactory module is used by the Compiler to generate dependencies from require.context API - [JavascriptModulesPlugin](https://rspack.rs/api/plugin-api/javascript-modules-plugin-hooks.md): Use the JavascriptModulesPlugin chunkHash hook to customize hashing for JavaScript chunks. - [Stats hooks](https://rspack.rs/api/plugin-api/stats-hooks.md): Customize stats generation and text output with StatsFactory and StatsPrinter hooks. - [RuntimePlugin hooks](https://rspack.rs/api/plugin-api/runtime-plugin-hooks.md): RuntimePlugin is used to generate the code for the Rspack startup - [ExternalModule hooks](https://rspack.rs/api/plugin-api/external-module-hooks.md): ExternalModule hooks control how external modules are assigned to chunks. ## Blog - [Rspack blogs](https://rspack.rs/blog/index.md): Rspack blog archive covering release announcements, ecosystem updates, and technical articles from the team. - [Announcing Rspack 2.3](https://rspack.rs/blog/announcing-2-3.md): Rspack 2.3 brings SWC Next, faster builds, lower memory usage, smaller bundles, a new experimental cache, loader caching, and built-in CSS improvements. - [Announcing Rspack 2.2](https://rspack.rs/blog/announcing-2-2.md): Rspack 2.2 is now available, featuring performance and HMR improvements, shorter module IDs, import.meta enhancements, and support for more platforms. - [Announcing Rspack 2.1](https://rspack.rs/blog/announcing-2-1.md): Rspack 2.1 is now available, featuring support for the Rust version of React Compiler, import.meta.glob, Source Phase Imports, persistent cache cleanup, and multiple performance and output optimizations. - [Announcing Rspack 2.0](https://rspack.rs/blog/announcing-2-0.md): Rspack 2.0 is out! It introduces more modern defaults, API design, and build outputs while remaining compatible with the webpack ecosystem. - [Announcing Rspack 1.7](https://rspack.rs/blog/announcing-1-7.md): Rspack 1.7 has been released, improving SWC Wasm plugin compatibility, importing assets as bytes, and stabilizing multiple experimental features. - [Announcing Rspack 1.6](https://rspack.rs/blog/announcing-1-6.md): Rspack 1.6 has been released with better ESM output, enhanced tree shaking, support for the import defer syntax, stabilized layers feature, and default barrel file optimization. - [Announcing Rspack 1.5](https://rspack.rs/blog/announcing-1-5.md): Rspack 1.5 has been released, introducing barrel file optimization and constant inlining optimization, also adding a built-in file system watcher, a virtual modules plugin, and a Rust extension mechanism, while dropping support for Node.js 16. - [Announcing Rspack 1.4](https://rspack.rs/blog/announcing-1-4.md): Rspack 1.4 has been released with support for running in the browser, incremental builds enabled by default, faster SWC, smaller bundles, and new features including the `CssChunkingPlugin`. - [Rspack joins the Next.js ecosystem](https://rspack.rs/blog/rspack-next-partner.md): Today, we’re excited to introduce next-rspack, a community-driven plugin bringing direct Rspack support to Next.js. This integration offers a fast, webpack-compatible alternative for teams not yet ready to adopt Turbopack. - [Announcing Rspack 1.3](https://rspack.rs/blog/announcing-1-3.md): Rspack 1.3 has been released with support for detecting circular dependencies, building HTTP imports, and referencing AMD modules. It introduces a new lazy compilation middleware, while also improving code splitting performance, output bundle size, and memory usage. - [Announcing Rspack 1.2](https://rspack.rs/blog/announcing-1-2.md): Rspack 1.2 has been released, introducing experimental persistent caching, a faster code splitting algorithm, and Yarn PnP support. - [Announcing Rspack 1.1](https://rspack.rs/blog/announcing-1-1.md): Rspack and Rsbuild 1.1 has been released, significantly improve the performance of cold starts and incremental builds. It also improve the built-in HTML plugin and types of configuration options. - [Announcing Rspack 1.0](https://rspack.rs/blog/announcing-1-0.md): Today Rspack has reached a new milestone - 1.0. This means that Rspack is production-ready, covers most of webpack's APIs and features, and is now prepared to support more users. - [Announcing Rspack 1.0 alpha](https://rspack.rs/blog/announcing-1-0-alpha.md): Rspack 1.0 alpha is now available on npm! Before releasing Rspack 1.0 stable version, we will test for 1~2 months to improve the API stability and reliability of v1.0 and to verify its impact on downstream projects. - [Announcing Rspack 0.7](https://rspack.rs/blog/announcing-0-7.md): Rspack 0.7 has been released, featuring support for lazy compilation, which can significantly improve the dev startup performance of large applications. It also introduces a brand-new css-module-lexer, increasing CSS bundling speed by 4 times. - [Announcing Rspack 0.6](https://rspack.rs/blog/announcing-0-6.md): Rspack 0.6 is out, with built-in support for mini-css-extract-plugin and new tree-shaking enabled by default. - [Announcing Rspack 0.5](https://rspack.rs/blog/announcing-0-5.md): Rspack 0.5 is out, supporting Module Federation and removing the default SWC transformation. - [Module Federation added to Rspack](https://rspack.rs/blog/module-federation-added-to-rspack.md): The latest Rspack 0.5.0 introduces the highly anticipated Module Federation, which is detailed in this article. - [Announcing Rspack 0.4](https://rspack.rs/blog/announcing-0-4.md): Rspack 0.4 is out, removing support for some builtin features. - [Announcing Rspack 0.3](https://rspack.rs/blog/announcing-0-3.md): Rspack 0.3 is out, adding support for web workers and the builtin:swc-loader. - [Announcing Rspack 0.2](https://rspack.rs/blog/announcing-0-2.md): Rspack 0.2 is out, introducing many new features, such as support for realContentHash, DataURI, and the ESM format, and more. - [Announcing Rspack 0.1](https://rspack.rs/blog/announcing-0-1.md): Rspack has officially been released! ## Others - [Builtin plugin](https://rspack.rs/contribute/architecture/builtin-plugin.md): Implement Rust built-in plugins with rspack_macros and register hook handlers using the plugin and plugin_hook macros. - [Rspack loader](https://rspack.rs/contribute/architecture/rspack-loader.md): Understand Rspack loader execution across Rust and JavaScript, including pitching, option passing, and execution optimizations. - [Building](https://rspack.rs/contribute/development/building.md): Install repository dependencies and build Rspack Rust crates, Node.js packages, and WebAssembly artifacts from source. - [Debugging](https://rspack.rs/contribute/development/debugging.md): Debug Rspack internals with VS Code, @rspack-debug/core, and rust-lldb, including crashes and build hangs. - [Memory analysis](https://rspack.rs/contribute/development/memory.md): Analyze Rspack memory snapshots and module and dependency entry counts as a contributor. - [Prerequisites](https://rspack.rs/contribute/development/prerequisites.md): Rspack is built using Rust and NAPI-RS, then released as Node.js packages - [Profiling](https://rspack.rs/contribute/development/profiling.md): In this section, we'll explore how to profile Rspack for identifying bottlenecks - [Project architecture](https://rspack.rs/contribute/development/project.md): Navigate the Rspack monorepo, including Rust crates, JavaScript packages, test suites, and benchmark directories. - [Releasing](https://rspack.rs/contribute/development/releasing.md): Rspack releases are automated through GitHub Actions - [Testing](https://rspack.rs/contribute/development/testing.md): Because Rspack uses a mix of Rust and Node.js code, different testing strategies are used for each - [Tracing](https://rspack.rs/contribute/development/tracing.md): tracing is used to record the internal processes of Rspack compilation, which can be used for performance analysis as well as narrow down the location of a bug - [Contributing guide](https://rspack.rs/contribute/index.md): Rspack contributor docs overview covering project architecture, development workflow, testing, debugging, and releases. - [SWC plugin version mismatch](https://rspack.rs/errors/swc-plugin-version.md): The SWC plugin is still an experimental feature, and the SWC Wasm plugin is currently not backward compatible - [License](https://rspack.rs/misc/branding/license.md): Unless otherwise noted, the content of the documents is from Rspack website contributors and is licensed under the CC BY 4.0 license - [FAQ](https://rspack.rs/misc/faq.md): Common Rspack questions covering webpack compatibility, performance tradeoffs, plugins, loaders, and framework support. - [Glossary](https://rspack.rs/misc/glossary.md): Definitions of common Rspack terms. - [Future behavior](https://rspack.rs/misc/planning/future.md): Rspack versioning and compatibility policies, including breaking changes and the stages of feature deprecation and removal. - [Roadmap](https://rspack.rs/misc/planning/roadmap.md): This document outlines the current direction of Rspack and will continue to evolve alongside future releases. Last updated: 2026-04 - [Core team](https://rspack.rs/misc/team/core-team.md): Meet the Rstack core team and find the projects and community contributors behind Rspack and its related tools. - [Emeriti members](https://rspack.rs/misc/team/emeriti.md): We'd like to recognize a few people who have made significant contributions to Rspack and its ecosystem in the past and have helped maintain them over the years - [Join us](https://rspack.rs/misc/team/join-us.md): We are the Web Infra team at ByteDance, serving the entire company's Web ecosystem