-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Don't drop /*@__PURE__*/ comments #653
Comments
This is already the case. These comments are not dropped:
|
Sorry, I forgot to note that they are dropped if minify enabled |
|
It is expected behavior that they are dropped when minification is enabled. Minification is intended to produce production-ready assets to serve to users, and these comments would mean sending users many additional useless bytes. If you are generating code that is intended for another bundler to process, you can disable minification to preserve these comments and then enable minification in the other bundler so that the result is still minified. |
Makes sense, thanks |
Related to #221.
These comments should stay in the library build so client bundlers can respect them.
The text was updated successfully, but these errors were encountered: