# Rspack > [Rsdoctor](/guide/optimization/use-rsdoctor.md) provides the`Bundle Size`module, which is mainly used to analyze the information of the outputs of Rspack, including the size of resources, duplicate ## Pages - [Bundle analysis](analysis.md): [Rsdoctor](/guide/optimization/use-rsdoctor.md) provides the`Bundle Size`module, which is mainly used to analyze th... - [Announcing Rspack 0.1](announcing-0-1.md): _March 06, 2023_ - [Announcing Rspack 0.2](announcing-0-2.md): _June 02, 2023_ - [Announcing Rspack 0.3](announcing-0-3.md): _August 24, 2023_ - [Announcing Rspack 0.4](announcing-0-4.md): _November 02, 2023_ - [Announcing Rspack 0.5](announcing-0-5.md): _January 09, 2024_ - [Announcing Rspack 0.6](announcing-0-6.md): _April 10, 2024_ - [Announcing Rspack 0.7](announcing-0-7.md): _May 28, 2024_ - [Announcing Rspack 1.0 alpha](announcing-1-0-alpha.md): _June 29, 2024_ - [Announcing Rspack 1.0](announcing-1-0.md): _August 28, 2024_ - [Announcing Rspack 1.1](announcing-1-1.md): _November 7, 2024_ - [Announcing Rspack 1.2](announcing-1-2.md): _January 21, 2025_ - [Announcing Rspack 1.3](announcing-1-3.md): _March 28, 2025_ - [Announcing Rspack 1.4](announcing-1-4.md): _June 26, 2025_ - [Announcing Rspack 1.5](announcing-1-5.md): _August 26, 2025_ - [Announcing Rspack 1.6](announcing-1-6.md): _October 30, 2025_ - [Announcing Rspack 1.7](announcing-1-7.md): _December 31, 2025_ - [Asset base path](asset-base-path.md): Rspack provides the [output.publicPath](/config/output.md#outputpublicpath) option, which sets the base URL path pref... - [Asset modules](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 p... - [BannerPlugin](banner-plugin.md): new rspack.BannerPlugin(options); - [Browser API](browser.md): `@rspack/browser`is a version of Rspack specifically designed for browser environments, without relying on WebContai... - [Building](building.md): Please see [prerequisites](/contribute/development/prerequisites.md) for setting up Rust and Node.js. - [Builtin lightningcss-loader](builtin-lightningcss-loader.md): [Lightning CSS](https://lightningcss.dev) is a high performance CSS parser, transformer and minifier written in Rust.... - [Builtin plugin](builtin-plugin.md): Builtin plugin uses [rspack\_macros](https://github.com/web-infra-dev/rspack/tree/7cc39cc4bb6f73791a5bcb175137ffd84b1... - [Builtin swc-loader](builtin-swc-loader.md): [SWC](https://github.com/swc-project/swc) (Speedy Web Compiler) is a transformer and minimizer for JavaScript and Typ... - [Cache](cache.md): Rspack caches snapshots and intermediate build artifacts, then reuses them in subsequent builds to improve build speed. - [CaseSensitivePlugin](case-sensitive-plugin.md): Detect case sensitivity conflicts in referenced module names and emit warnings. - [CircularDependencyRspackPlugin](circular-dependency-rspack-plugin.md): [Added in v1.3.0](https://github.com/web-infra-dev/rspack/releases/tag/v1.3.0)Rspack only - [Command line interface](cli.md): [@rspack/cli](https://npmjs.com/package/@rspack/cli) is the command line tool for Rspack, providing a variety of comm... - [Code splitting](code-splitting.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [Compilation hooks](compilation-hooks.md): Compilation hooks are the primary extension method for Rspack plugins. These hooks enable developers to intervene at ... - [Compilation](compilation.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [Compiler hooks](compiler-hooks.md): Compiler hooks allow Rspack plugins to intervene at specific stages of the build process. These hooks represent vario... - [Compiler](compiler.md): The Compiler is a core object in Rspack. A Compiler instance is created when you call Rspack's [JavaScript API](/api/... - [ContextModuleFactory](context-module-factory-hooks.md): The`ContextModuleFactory`module is used by the`Compiler`to generate dependencies from [require.context](/api/runt... - [ContextReplacementPlugin](context-replacement-plugin.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [Context](context.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [CopyRspackPlugin](copy-rspack-plugin.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [Core team](core-team.md): The development of Rstack is led by ByteDance's web infra team and driven together with community contributors on sev... - [Migrate from Create React App](cra.md): Since Create React App (CRA) comes with rich built-in capabilities, it would be challenging to manually set up an equ... - [CssChunkingPlugin](css-chunking-plugin.md): [Added in v1.4.0](https://github.com/web-infra-dev/rspack/releases/tag/v1.4.0)Rspack only - [CssExtractRspackPlugin](css-extract-rspack-plugin.md): Rspack only - [CSS](css.md): Rspack has built-in support for CSS and provides several features to support CSS bundling. - [Debugging](debugging.md): 1. Install`go install github.com/go-delve/delve/cmd/dlv@latest` - [DefinePlugin](define-plugin.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [Deprecated options](deprecated-options.md): This page lists configuration options that have been deprecated in Rspack. - [Dev server](dev-server.md): Rspack CLI comes with a built-in`@rspack/dev-server`for development and debugging. Its capabilities are similar to ... - [Devtool](devtool.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [DllPlugin](dll-plugin.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [DllReferencePlugin](dll-reference-plugin.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [Ecosystem](ecosystem.md): Rstack is a unified JavaScript toolchain centered on Rspack, with high performance and consistent architecture. - [ElectronTargetPlugin](electron-target-plugin.md): This plugin is used to external the Electron built-in modules during bundling, and is used by [`externalsPresets.elec... - [Emeriti members](emeriti.md): We'd like to recognize a few people who have made significant contributions to Rspack and its ecosystem in the past a... - [EnableChunkLoadingPlugin](enable-chunk-loading-plugin.md): Enable runtime module bundling for this chunkLoadingType, and is used by [output.enabledChunkLoadingTypes](/config/ou... - [EnableLibraryPlugin](enable-library-plugin.md): Enable library format bundling for this libraryType, and is used by [output.enabledLibraryTypes](/config/output.md#ou... - [EnableWasmLoadingPlugin](enable-wasm-loading-plugin.md): Enable runtime module bundling for this wasmLoadingType, and is used by [output.enabledWasmLoadingTypes](/config/outp... - [EntryPlugin](entry-plugin.md): Adds an entry chunk on compilation. The chunk is named`options.name`and contains only one module (plus dependencies... - [Entry](entry.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [EnvironmentPlugin](environment-plugin.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [EsmLibraryPlugin](esm-library-plugin.md): [Added in v1.5.6](https://github.com/web-infra-dev/rspack/releases/tag/v1.5.6)[Removed in v2.0.0](/en/misc/planning/f... - [ESM output](esm.md): Rspack supports building with ESM format output. When building applications, Rspack generates IIFE-based bundled outp... - [EvalSourceMapDevToolPlugin](eval-source-map-dev-tool-plugin.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [Experiments](experiments.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [Extends](extends.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [ExternalsPlugin](externals-plugin.md): This plugin allows you to specify external dependencies that should not be bundled into the output files. This is par... - [Externals](externals.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [FAQ](faq.md): **We have established a partnership with the webpack team.** Rspack is an attempt to optimize webpack performance usi... - [Filename placeholders](filename-placeholders.md): Rspack's filename-related options support placeholders. This lets you generate output filenames dynamically based on ... - [Future behavior](future.md): During the 0.y.z phase, Rspack may include breaking changes only when upgrading the minor (y) version, and ensures ba... - [Glossary](glossary.md): Below are some common terms used with Rspack and webpack. - [Branding guideline](guideline.md): Here you can find the branding guideline, assets and license for the project. - [Hot module replacement](hmr.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [HotModuleReplacementPlugin](hot-module-replacement-plugin.md): Enables hot module replacement (HMR). - [HtmlRspackPlugin](html-rspack-plugin.md): Rspack only - [HTML](html.md): Rspack supports generating HTML files using the following plugins, and automatically injecting the generated CSS and ... - [IgnorePlugin](ignore-plugin.md): This plugin will prevent the generation of modules for`import`or`require`calls matching the regular expressions. - [Incremental](incremental.md): Whether to enable incremental build, which significantly speeds up rebuilds and HMR by only rebuilding the changed pa... - [Configure Rspack](index.md): Rspack provides configurations similar to webpack. This chapter will show you how to use the Rspack configuration. - [InfrastructureLogging](infrastructure-logging.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [Inline matchResource](inline-match-resource.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [Inline loaders](inline.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [Internal plugins](internal-plugins.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [Introduction](introduction.md): Rspack (pronounced as - [JavascriptModulesPlugin](javascript-modules-plugin-hooks.md): `SyncHook` - [JavascriptModulesPlugin](javascript-modules-plugin.md): Handles the bundling of JavaScript, usually used to access the [hooks of the JavascriptModulesPlugin](/api/plugin-api... - [Join us](join-us.md): We are the Web Infra team at ByteDance, serving the entire company's Web ecosystem. Our vision is to **create a world... - [JSON](json.md): Rspack has built-in support for [JSON](https://en.wikipedia.org/wiki/JSON), and you can import JSON files directly. - [Layer](layer.md): Layer is a powerful feature provided by Rspack that allows you to categorize and manage modules. By assigning differe... - [Lazy barrel](lazy-barrel.md): Lazy barrel is a stable optimization feature in Rspack that improves build performance by skipping the building of un... - [Lazy compilation](lazy-compilation.md): Lazy compilation is an effective strategy to improve the startup performance of the development phase. Instead of com... - [License](license.md): Rspack is [MIT licensed](https://github.com/web-infra-dev/rspack/blob/main/LICENSE). - [LightningCssMinimizerRspackPlugin](lightning-css-minimizer-rspack-plugin.md): Rspack only - [LimitChunkCountPlugin](limit-chunk-count-plugin.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [Loader](loader.md): Rspack has built-in support for JavaScript, CSS, JSON, and static assets modules. - [Logger](logger.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [Mode](mode.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [Module Federation added to Rspack](module-federation-added-to-rspack.md): January 09, 2024 - [ModuleFederationPluginV1](module-federation-plugin-v1.md): This plugin corresponds to Module Federation v1.0, which is the [ModuleFederationPlugin in webpack](https://webpack.j... - [ModuleFederationPlugin](module-federation-plugin.md): This plugin implements [Module Federation 1.5](https://github.com/module-federation/universe/tree/main/packages/enhan... - [Module Federation](module-federation.md): Module Federation is an architectural pattern for JavaScript application decomposition (similar to microservices on t... - [Module methods](module-methods.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [Module resolution](module-resolution.md): Module resolution is the process of converting a module identifier to a module's file path. The Rust port of enhanced... - [Module Rules](module-rules.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [Module variables](module-variables.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [Module](module.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [NestJS](nestjs.md): Rspack not only supports building frontend projects but also supports building Node.js App like NestJS. - [Next.js](next.md): [next-rspack](https://www.npmjs.com/package/next-rspack) is a community-driven plugin that enables Next.js projects t... - [NoEmitOnErrorsPlugin](no-emit-on-errors-plugin.md): This plugin is used to prevent the assets emitting when there are compilation errors. [`optimization.emitOnErrors`](/... - [NodeTargetPlugin](node-target-plugin.md): This plugin is used to external the Node.js built-in modules during bundling, and is used by [`externalsPresets.node`... - [NodeTemplatePlugin](node-template-plugin.md): This plugin is used to bundle out Node.js assets, often used with childCompiler. - [Node](node.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [NormalModuleFactory](normal-module-factory-hooks.md): `NormalModuleFactory`is used by the [Compiler](/api/javascript-api/compiler.md) to generate modules (`NormalModule`)... - [NormalModuleReplacementPlugin](normal-module-replacement-plugin.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [Optimization](optimization.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [Other options](other-options.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [Output](output.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [Performance](performance.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [Plugin compatibility](plugin.md): This page lists the compatibility status of common community plugins in Rspack. - [Plugins](plugins.md): - **Type:** - [Preact](preact.md): Rspack provides two solutions to support Preact: - [Prerequisites](prerequisites.md): Rspack is built using [Rust](https://rust-lang.org/) and [NAPI-RS](https://napi.rs/), then released as [Node.js](http... - [Production optimization](production.md): Rspack supports code splitting, which allows splitting the code into other chunks. You have the full control about si... - [Build performance profile](profile.md): This chapter introduces some common performance bottlenecks and performance profile methods for Rspack. - [Profiling](profiling.md): In this section, we'll explore how to profile Rspack for identifying bottlenecks. - [ProgressPlugin](progress-plugin.md): This plugin can be used to configure the progress bar. - [Project Architecture](project.md): This is a **monorepo** containing both Rust crates and JavaScript packages: - [ProvidePlugin](provide-plugin.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [Quick start](quick-start.md): Get up to speed quickly with a new Rspack based project. - [React](react.md): Rspack provides two solutions to support React: - [Releasing](releasing.md): Rspack releases are automated through GitHub Actions. - [ResolveLoader](resolve-loader.md): This configuration item is consistent in type with [`resolve`](/config/resolve.md), but this setting only affects the... - [Resolve](resolve.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [Resolver API](resolver.md): Rspack uses the higher-performance [rspack-resolver](https://github.com/rstackjs/rspack-resolver) written in Rust to ... - [Roadmap](roadmap.md): This document provides an overview of the latest plans and progress for Rspack and the Rstack toolchain. It will be c... - [Rspack loader](rspack-loader.md): - [rspack#2780](https://github.com/web-infra-dev/rspack/pull/2789) - [Rspack joins the Next.js ecosystem](rspack-next-partner.md): _April 10, 2025_ - [Migrating from Rspack 0.x](rspack-0x.md): The document lists all breaking changes from Rspack v0.7 to v1.0. You can refer to this document for migration. - [RuntimeChunkPlugin](runtime-chunk-plugin.md): Used to control how the runtime chunk is generated, it is used by [`optimization.runtimeChunk`](/config/optimization.... - [RuntimePlugin hooks](runtime-plugin-hooks.md): `RuntimePlugin`is used to generate the code for the Rspack startup. It provides the following hooks that can be used... - [Solid](solid.md): Rspack provides two solutions to support Solid: - [SourceMapDevToolPlugin](source-map-dev-tool-plugin.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [SplitChunksPlugin](split-chunks-plugin.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [Stats hooks](stats-hooks.md): A HookMap, called when generating the specified stats item. - [Stats JSON](stats-json.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [Stats](stats.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [Migrate from Storybook webpack](storybook.md): If you are using React / Vue with [Storybook](https://storybook.js.org/) and building with webpack 5, you can replace... - [SubresourceIntegrityPlugin](subresource-integrity-plugin.md): [Added in v1.7.0](https://github.com/web-infra-dev/rspack/releases/tag/v1.7.0)Rspack only - [Svelte](svelte.md): Rspack provides two solutions to support Svelte: - [SwcJsMinimizerRspackPlugin](swc-js-minimizer-rspack-plugin.md): Rspack only - [SWC plugin version mismatch](swc-plugin-version.md): The SWC plugin is still an experimental feature, and the SWC Wasm plugin is currently not backward compatible. The ve... - [SWC API](swc.md): Rspack uses [SWC](https://swc.rs/) under the hood to transform and minify JavaScript code, and experimentally exposes... - [Target](target.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [Testing](testing.md): Because Rspack uses a mix of Rust and Node.js code, different testing strategies are used for each. - [Tracing](tracing.md): [`tracing`](https://crates.io/crates/tracing) is used to record the internal processes of Rspack compilation, which c... - [Tree shaking](tree-shaking.md): Rspack supports [tree shaking](https://developer.mozilla.org/en-US/docs/Glossary/Tree_shaking), a term commonly used ... - [TypeScript](typescript.md): Enabling TypeScript support can be done through [`builtin:swc-loader`](/guide/features/builtin-swc-loader.md). - [Use Rsdoctor](use-rsdoctor.md): [Rsdoctor](https://rsdoctor.rs/) is a build analyzer tailored for the Rspack ecosystem. - [VirtualModulesPlugin](virtual-modules-plugin.md): [Added in v1.5.0](https://github.com/web-infra-dev/rspack/releases/tag/v1.5.0)Rspack only - [Vue](vue.md): Rspack provides two solutions to support Vue: - [Watch](watch.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [Web Workers](web-workers.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ... - [Migrate from webpack](webpack.md): Rspack's configuration is designed based on webpack, enabling you to migrate your project from webpack to Rspack with... - [Writing loaders](writing-loaders.md): CC 4.0 License> The content of this section is derived from the content of the following links and is subject to the ...