-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
Regression in 5.110.0 with esbuild-loader: "ERROR: "minify" must be a boolean" #21879
Copy link
Copy link
Closed
Copy link
Labels
area: configOptions, defaults, validation (lib/config, schemas/)Options, defaults, validation (lib/config, schemas/)area: optimizationTree-shaking, splitChunks, concatenation, ids (lib/optimize, lib/ids)Tree-shaking, splitChunks, concatenation, ids (lib/optimize, lib/ids)regressionWorked in a previous release; pair with the Affected version fieldWorked in a previous release; pair with the Affected version field
Description
Activity
Metadata
Metadata
Assignees
Labels
area: configOptions, defaults, validation (lib/config, schemas/)Options, defaults, validation (lib/config, schemas/)area: optimizationTree-shaking, splitChunks, concatenation, ids (lib/optimize, lib/ids)Tree-shaking, splitChunks, concatenation, ids (lib/optimize, lib/ids)regressionWorked in a previous release; pair with the Affected version fieldWorked in a previous release; pair with the Affected version field
Type
Fields
Priority
None yet
Effort
None yet
Have you used AI?
No
Which part of webpack is affected?
optimization (tree-shaking, splitChunks, concatenation)
Bug Description
When trying to build JS with the
EsbuildPluginfromesbuild-loader, the following error is displayed:This happens with the following configuration:
Link to Minimal Reproduction and steps to reproduce
Expected Behavior
The build to work correctly.
Actual Behavior
Error:
ERROR: "minify" must be a booleanEnvironment
Is this a regression?
Yes (please specify version below)
Last Working Version
v5.109.2
(broken in v5.110.0)
Additional Context
If you uncomment the
minify: true,configuration in the sample configuration it works.It also works with webpack v5.109.2.