You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
webpack should build successfully with experiments.css disabled.
I would like to be able to enable experiments.futureDefaults so that I can ensure compatibility with the next major webpack version. But for some experiments, like experiments.css, I would like to be able opt-out for now until I better understand the upgrade path.
Bug report
What is the current behavior?
When
experiements.futureDefaults
is enabled butexperiments.css
is disabled, webpack fails with the following error.I believe this behaviour was introduced in
5.67.0
via (#15200). Specifically...webpack/lib/config/normalization.js
Line 185 in 1489b91
When
experiments.css
is set tofalse
, its value is normalised asundefined
. So theexperiments.futureDefaults
value is used in its place here...webpack/lib/config/defaults.js
Line 164 in 1489b91
If the current behavior is a bug, please provide the steps to reproduce.
webpack.config.js
What is the expected behavior?
webpack should build successfully with
experiments.css
disabled.I would like to be able to enable
experiments.futureDefaults
so that I can ensure compatibility with the next major webpack version. But for some experiments, likeexperiments.css
, I would like to be able opt-out for now until I better understand the upgrade path.Other relevant information:
webpack version: 5.72.0
Node.js version: 16.14.2
Operating System: Ubuntu
The text was updated successfully, but these errors were encountered: