Repository navigation
Planned breaking changes for Rspack 2.0 #9270
Replies: 41 comments 60 replies
Make
|
|
Drop Node 18 supportNode.js 18 and all earlier versions are End-Of-Life since April 30, 2025, see https://nodejs.org/en/blog/announcements/node-18-eol-support
Ref: |
Remove
|
Simplify
|
Default options of
|
Consider ignoring aliased dynamic requireWe're considering skipping aliased dynamic require by default, which would help reduce bundle size for libraries like moment.js and align with other bundlers' behavior, though whether this should be changed remains open for discussion. var aliasRequire = require
aliasRequire('./locale' + name)
|
Remove the
|
Remove the built-in webpack-bundle-analyzerIn the early versions of Related: |
Simplify and unify browserslist implementationSimplify and unify browserslist implementation between |
Remove rspackFuture
|
Refactor
|
Refactor
|
Deprecate or Remove this._module support
|
|
Is Rspack 2.0 still compatible with webpack@5? |
Remove draft option of LightningCSSThe |
Remove deprecated output.library optionsThe deprecated library options on
|
Default global identifiers updatedThe default values of some runtime global identifiers have been updated to better reflect the Rspack brand. // Before (Rspack 1.x)
output.hotUpdateGlobal = `webpackHotUpdate${uniqueNameId}`;
output.chunkLoadingGlobal = `webpackChunk${uniqueNameId}`;
// Now (Rspack 2.0)
output.hotUpdateGlobal = `rspackHotUpdate${uniqueNameId}`;
output.chunkLoadingGlobal = `rspackChunk${uniqueNameId}`; |
Enable
|
Disable parser.javascript.requireAsExpression by defaultWhen requireAsExpression is enabled, rspack emits a "Critical dependency" warning whenever require is used as an expression (e.g., var r = require;). By disabling it by default, we avoid these warnings in typical scenarios while still allowing users to opt-in if they need this behavior. |
Use 'rspack' as default fallback value of output.trustedTypes.policyNameThe policyName will use |
Move
|
Change default value for devtool
|
Change
|
Remove deprecated
|
ProgressPlugin APIUpdate ProgressPlugin // before
new rspack.ProgressPlugin((percentage, message ...args) => {
// args: string[]
});
// after
new rspack.ProgressPlugin((percentage, message, info) => {
// info: { builtModules: number; moduleIdentifier?: string }
}); |
Resolve's
|
Remove
|
Excuse me, do you have any timeline for the v2 release? |






Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This topic is used to collect and discuss breaking changes planned for Rspack 2.0.
Please note that we do not have a clear timeline for Rspack 2.0 yet.
Example:
RSPACK_CONFIG_VALIDATEenvironment variable and enable it by defaultAll reactions