Enable and try out some experimental features.
Object
Enable incremental rebuild. true
will try to reuse the results of the last build when rebuild to improve build speed, supports configuration of different stages, the default is enabled.
boolean | { make?: boolean, emitAsset?: boolean }
true
boolean
true
Once enabled, Rspack will output ECMAScript module syntax whenever possible. For instance, import()
to load chunks, ESM exports to expose chunk data, among others.
module.exports = {
experiments: {
outputModule: true,
},
};
boolean
true
Once enabled, Rspack will enable native CSS support, Note that if you're using style-loader
and css-loader
, you should disable this option because style-loader
and css-loader
will conflict with native CSS.