We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given the provided template, I run npm start and get a minified bundle under the dist folder.
new EsbuildPlugin({ define: { 'process.env.ENV': JSON.stringify('value'), }, }),
It looks like using EsbuildPlugin to define values prevents minification no matter what.
The bundle is minified when I use EsbuildPlugin with define.
https://stackblitz.com/edit/node-gme7l3
4.0.0
16.20.0
npm
Linux
The text was updated successfully, but these errors were encountered:
Thanks, and good catch!
Really appreciate the reproduction. Fix coming soon.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Problem
Given the provided template, I run npm start and get a minified bundle under the dist folder.
It looks like using EsbuildPlugin to define values prevents minification no matter what.
Expected behavior
The bundle is minified when I use EsbuildPlugin with define.
Minimal reproduction URL
https://stackblitz.com/edit/node-gme7l3
Version
4.0.0
Node.js version
16.20.0
Package manager
npm
Operating system
Linux
Contributions
The text was updated successfully, but these errors were encountered: