-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
Define property causes bundle to minify #331
Comments
Good catch. You can turn off minification by setting one of these properties to false: Previously, it was called the "EsbuildMinifyPlugin". I should've also changed this default behavior when I renamed it to the generic "EsbuildPlugin". I will change this default behavior but it will have to be in the next breaking. |
Thank you, it works. Here is what I did:
|
Preparing the v4 release where this is fixed. Would you mind helping test? npm install -D 'esbuild-kit/esbuild-loader#npm/v4' |
It worked without the minify option after installing the new version, thank you. |
🎉 This issue has been resolved in version 4.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@privatenumber I'm afraid now using the plugin causes bandle to not minify even in cases I want to minify. |
If you can explain, please file a new issue. I'm locking this thread as the original issue is resolved. |
Bug description
npm start
and get a minified bundle under thedist
folder.optimization.minimize
tofalse
to disable Webpack minimization.npm start
and get a not minified bundle under thedist
folder.npm start
and get a minified bundle under thedist
folder.minify: false
to the plugin options constructor argument doesn't change anything.It looks like uing
EsbuildPlugin
to define values causes minification no matter what.Minimal reproduction link
https://stackblitz.com/edit/node-dawpgq
Environment
Can you contribute a fix?
The text was updated successfully, but these errors were encountered: