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

Option to disable constantFoldingPlugin in production builds #550

Open
olivergeorge opened this issue Apr 27, 2020 · 0 comments
Open

Option to disable constantFoldingPlugin in production builds #550

olivergeorge opened this issue Apr 27, 2020 · 0 comments

Comments

@olivergeorge
Copy link

olivergeorge commented Apr 27, 2020

This is a feature request.

Constant folding breaks some already minified code. In order to do a release build with minified code its necessary to patch the worker.js file to comment out plugins.push([constantFoldingPlugin, opts]);.

#291 describes the problem this feature would resolve. This is still a problem as of 0.62.2.

Adding an option here to disable constantFoldingPlugin would provide a simple configuration based solution.

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

No branches or pull requests

1 participant