Type '{ minify: false; minifyWhitespace: true; minifyIdentifiers: false; minifySyntax: true; }' is not assignable to type 'MinimizerOptions<MinifyOptions>'.
Object literal may only specify known properties, and 'minify' does not exist in type 'MinimizerOptions<MinifyOptions>'.ts(2322)
index.d.ts(120, 7): The expected type comes from property 'terserOptions' which is declared here on type 'BasePluginOptions & { minify?: MinimizerImplementation<MinifyOptions>; terserOptions?: MinimizerOptions<MinifyOptions>; }'
Expected Behavior
This config should be valid according to the docs - here
It used to work with terser v5.2.0, but stopped working when upgraded to 5.3.9.
The last working version is 5.2.1, once upgraded to 5.2.2 it start breaking.
I believe it's a result of this commit
Bug report
Actual Behavior
Getting a type error for this configuration:
error:
Expected Behavior
This config should be valid according to the docs - here
It used to work with terser v5.2.0, but stopped working when upgraded to 5.3.9.
The last working version is 5.2.1, once upgraded to 5.2.2 it start breaking. I believe it's a result of this commit
How Do We Reproduce?
Reproduce repo
Please paste the results of
npx webpack-cli info
here, and mention other relevant information