NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #4399 most downloaded on npm
Node binding for rspack
Latest stable
2.3.2
Last release 12 days ago
10 Nov 2026
Ships on a steady schedule
a new release about every 2 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
1132 releases · first in 2022
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
Nothing published for this version
Nothing published for this version
This feature enables the new resolver implementation provided by oxc, which is 5 times faster than the previous resolver implementation. The new resol
This feature enables the new resolver implementation provided by oxc, which is 5 times faster than the previous resolver implementation.
The new resolver also supports tsconfig project references defined in tsconfig-paths-webpack-plugin, which handles the support of nested paths alias inside project references.
To fully opt-in this feature, use the following configuration or see resolve.tsConfig for details.
module.exports = {
resolve: {
tsconfig: {
configFile: path.resolve(__dirname, './tsconfig.json'),
references: 'auto'
},
}
experiments: {
rspackFuture: {
newResolver: true
}
}
}
This feature enables the builtin:swc-loader to provide compile-time support for styled-components. Now you can configure it through options.rspackExperiments.styledComponents.
/** @type {import('@rspack/core').Configuration}*/
module.exports = {
module: {
rules: [
{
test: /\.jsx?$/,
loader: "builtin:swc-loader",
options: {
jsc: {
parser: {
syntax: "ecmascript",
jsx: true
}
},
rspackExperiments: {
styledComponents: {
displayName: true,
ssr: true,
fileName: true,
meaninglessFileNames: ["index", "styles"],
namespace: "rspack-test",
topLevelImportPaths: [
"@xstyled/styled-components",
"@xstyled/styled-components/*"
],
transpileTemplateLiterals: true,
minify: true,
pure: true,
cssProps: true
}
}
}
}
]
}
};
SWC's support for styled-components is essentially aligned with the official Babel plugin, so you can visit babel-plugin-styled-components for more information.
Finished support for experiments.css for Vue2, you can extract css with our custom vue-loader (@rspack/loader-vue2). First, add our custom vue-loader to package.json
{
"devDependencies": {
"vue": "2.7.14",
"vue-loader": "npm:@rspack/loader-vue2@15.10.1-alpha.0"
}
}
Then, enable vue-loader with experimentalInlineMatchResource just like how you did with Vue3:
const { VueLoaderPlugin } = require("vue-loader");
module.exports = {
plugins: [new VueLoaderPlugin()],
module: {
rules: [
{
test: /\.vue$/,
use: [
{
loader: "vue-loader",
options: {
// to extract css, you should enable this
experimentalInlineMatchResource: true
}
}
]
}
]
},
experiments: {
css: true
}
};
Check out the example for details.
Rspress is a static site generator based on Rspack and mdx-rs. It is 5~10 times faster than Docusaurus/Nextra and supports lots of nice features out of the box, such as i18n, full-text search, component preview and etc. See detail in https://github.com/orgs/web-infra-dev/discussions/5
<!-- Release notes generated using configuration in .github/release.yml at v0.3.7 -->
react-refresh resolving in @rspack/plugin-react-refresh by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4267Compilation.namedChunks by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4255Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.3.6...v0.3.7
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
<!-- Release notes generated using configuration in .github/release.yml at v0.3.6 -->
<!-- Release notes generated using configuration in .github/release.yml at v0.3.6 -->
Rule.oneOf and Rule.rules by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4254Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.3.5...v0.3.6
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
builtin:sass-loader is deprecated in favor of sass-loader. You can still use it in this and the next minor version. It will be officially removed in v…
<!-- Release notes generated using configuration in .github/release.yml at v0.3.5 -->
Default transformation was a default strategy for transform introduced v0.1.x. This introduced ton of problems during our daily development. For example, excluding node_modules for certain libraries are not supported, thus, which results in some mis-transformations.
From now on, you can opt-in experiments.rspackFuture.disableTransformByDefault = true to disable the internal transformations. This greatly aligns Rspack with Webpack architecture. By enabling this option, these few options are not able to use anymore:
builtin:swc-loader for user code transformation for Rspack.Builtin types(Rule.type) are removed in favor of webpack's web-standard bundling:
We will come up a new strategy to add back these DX friendly features in the future. Instead, builtin:swc-loader is added for fine-grained transformation. Please refer to this guide for the migration and details.
In this version, we'd like to introduce a better way to enable react fast refresh with @rspack/plugin-react-refresh, which is more powerful and flexible than builtins.react.refresh = true, now you can use it with builtin:swc-loader, swc-loader, or babel-loader. Checkout docs for more details
builtin:sass-loader is deprecated in favor of sass-loader. You can still use it in this and the next minor version. It will be officially removed in v0.5.0. See this for our deprecation stages.
Preview:
https://github.com/web-infra-dev/rspack/assets/7237365/b11fd939-560d-4a47-83c3-f81a136bae3d
panic_hook by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4210builtin:sass-loader by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4226output.hotUpdateGlobal by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4227include and exclude of react-refresh-rspack-plugin by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4233react from rspackExperiments of builtin:swc-loader by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4221self is not defined by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4232&str caused memory leak in builtin:swc-loader by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4235ExportsInfoId align to webpack by @IWANABETHATGUY in https://github.com/web-infra-dev/rspack/pull/4209Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.3.4...v0.3.5
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
<!-- Release notes generated using configuration in .github/release.yml at v0.3.4 -->
<!-- Release notes generated using configuration in .github/release.yml at v0.3.4 -->
To further improve Rspack's compatibility with webpack ecosystem, we implemented internal plugins in Rspack.
For example, you can use rspack.XxxPlugin in your configuration.
const rspack = require('@rspack/core');
module.exports = {
plugins: [
new rspack.DefinePlugin({ 'process.env.NODE_ENV': "'production'", }),
// In addition to webpack's existing plugins, some of the plugins implemented
// in rust in Rspack are also exported by internal plugins
new rspack.HtmlRspackPlugin({ template: './index.html' }),
],
};
Or use compiler.webpack.XxxPlugin in your plugin.
class ReactRefreshRspackPlugin {
apply(compiler) {
const reactRefreshPath = require.resolve("../client/reactRefresh.js");
const reactRefreshEntryPath = require.resolve("../client/reactRefreshEntry.js");
new compiler.webpack.EntryPlugin(compiler.context, reactRefreshEntryPath, {
name: undefined
}).apply(compiler);
new compiler.webpack.ProvidePlugin({
$ReactRefreshRuntime$: reactRefreshPath
}).apply(compiler);
}
};
Thanks to the implementation of internal plugins, we can now easily implement the @rspack/plugin-react-refresh, which was coupled into @rspack/dev-server before.
Now, if you are using a custom dev server instead of @rspack/dev-server or @rspack/cli, you can easily enable react fast refresh by adding the @rspack/plugin-react-refresh plugin.
See
Rspack is now html-webpack-plugin compatible!
const path = require("node:path")
const HtmlWebpackPlugin = require("html-webpack-plugin")
module.exports = {
plugins: [
new HtmlWebpackPlugin({
template: "pug-loader!" + path.join(__dirname, "template.pug")
})
]
}
builtin:swc-loader supports builtin transformationsThese fields served as the alternative to the current builtin transform options, aiming to support transforming with respect to the certain module.
type RspackExperiments = {
react?: ReactOptions;
import?: PluginImportOptions;
emotion?: EmotionOptions;
relay?: RelayOptions;
};
For example, integrating emotion transformation in the project:
module.exports = {
module: {
rules: [
{
test: /\.jsx$/,
exclude: /node_modules/,
loader: "builtin:swc-loader",
options: {
jsc: {
parser: {
syntax: "ecmascript",
jsx: true,
}
},
rspackExperiments: {
emotion: true
}
}
}
]
}
}
builtin:swc-loader experimental transformers by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4133BannerPlugin by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4151keepFnNames and keepClassNames options of builtin swc minfier by @xinxinhe1810 in https://github.com/web-infra-dev/rspack/pull/4121experiments.newSplitChunks by @hyf0 in https://github.com/web-infra-dev/rspack/pull/4169experiments.newSplitChunks being explicitly setted by @hyf0 in https://github.com/web-infra-dev/rspack/pull/4174sendStats of webpack-dev-server by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4101Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.3.2...v0.3.4
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
<!-- Release notes generated using configuration in .github/release.yml at v0.3.2 -->
<!-- Release notes generated using configuration in .github/release.yml at v0.3.2 -->
EntryPlugin by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4073ExternalsPlugin by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4083builtin:swc-loader does not report error correctly by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4111merge_group tests on check being requested by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4086semver to 6.3.1 by @GarrisonD in https://github.com/web-infra-dev/rspack/pull/4102Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.3.1...v0.3.2
One column per quarter.