Planned breaking changes for Rspack 2.0 #9270
Replies: 39 comments 56 replies
-
Make
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
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: |
Beta Was this translation helpful? Give feedback.
-
Remove
|
Beta Was this translation helpful? Give feedback.
-
Simplify
|
Beta Was this translation helpful? Give feedback.
-
Default options of
|
Beta Was this translation helpful? Give feedback.
-
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)
|
Beta Was this translation helpful? Give feedback.
-
Remove the
|
Beta Was this translation helpful? Give feedback.
-
Remove the built-in webpack-bundle-analyzerIn the early versions of Related: |
Beta Was this translation helpful? Give feedback.
-
Simplify and unify browserslist implementationSimplify and unify browserslist implementation between |
Beta Was this translation helpful? Give feedback.
-
Remove rspackFuture
|
Beta Was this translation helpful? Give feedback.
-
Refactor
|
Beta Was this translation helpful? Give feedback.
-
Refactor
|
Beta Was this translation helpful? Give feedback.
-
Deprecate or Remove this._module support
|
Beta Was this translation helpful? Give feedback.
-
|
Is Rspack 2.0 still compatible with webpack@5? |
Beta Was this translation helpful? Give feedback.
-
Remove WarnCaseSensitiveModulesPluginThe |
Beta Was this translation helpful? Give feedback.
-
Remove plugin.getHooksThe hooks of plugins like HtmlRsapckPlugin, RuntimePlugin and RsdoctorPlugin can be got by |
Beta Was this translation helpful? Give feedback.
-
Remove draft option of LightningCSSThe |
Beta Was this translation helpful? Give feedback.
-
Remove deprecated output.library optionsThe deprecated library options on
|
Beta Was this translation helpful? Give feedback.
-
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}`; |
Beta Was this translation helpful? Give feedback.
-
Enable
|
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
Use 'rspack' as default fallback value of output.trustedTypes.policyNameThe policyName will use |
Beta Was this translation helpful? Give feedback.
-
Move
|
Beta Was this translation helpful? Give feedback.
-
Change default value for devtool
|
Beta Was this translation helpful? Give feedback.
-
Change
|
Beta Was this translation helpful? Give feedback.
-
Remove deprecated
|
Beta Was this translation helpful? Give feedback.
-
ProgressPlugin APIUpdate ProgressPlugin // before
new rspack.ProgressPlugin((percentage, message ...args) => {
// args: string[]
});
// after
new rspack.ProgressPlugin((percentage, message, info) => {
// info: { builtModules: number; moduleIdentifier?: string }
}); |
Beta Was this translation helpful? Give feedback.
-
Resolve's
|
Beta Was this translation helpful? Give feedback.
-
Remove
|
Beta Was this translation helpful? Give feedback.

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 defaultBeta Was this translation helpful? Give feedback.
All reactions