Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting compress to false no longer prevents compression in 5.3.5. #513

Closed
amoser67 opened this issue Aug 24, 2022 · 1 comment · Fixed by #514
Closed

Setting compress to false no longer prevents compression in 5.3.5. #513

amoser67 opened this issue Aug 24, 2022 · 1 comment · Fixed by #514

Comments

@amoser67
Copy link

Bug report

Setting the "compress" terserOptions property to false no longer seems to have any effect in 5.3.5.

5.3.3 works fine, but 5.3.5 compresses my JS even when set to false.

Actual Behavior

Setting 'compress' to false in terser options does not prevent webpack from compressing applicable JS.

Expected Behavior

Setting compress to false in terser options should prevent webpack from compressing applicable JS.

How Do We Reproduce?

Try processing a JS file using the following optimization object, and you will notice that the output is compressed:

optimization: {
    minimizer: [
        new TerserPlugin({
            parallel: true,
            extractComments: true,
            terserOptions: {
                compress: false,
                mangle: false,
            }
        })
    ]
}

Please paste the results of npx webpack-cli info here, and mention other relevant information

Not applicable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants