You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it instead requires either comments?: false | 'some' | 'all';, would like to propose supporting a regex so that certain comments will be left untouched
I've been tracking down why our bundle size increased by 10kb and the issue is we have a babel plugin that adds pure comments and then because of this: #9255
all of those comments now stay in the minified file.
I would love at least to be able to configure annotations to not be kept.
+1 to this
We have a very large project, and are blocked on upgrading SWC past 1.7.12 because the PURE comments adds multiple hundreds of KBs to our bundles
I don't need full regex support, but it would be great to preserve license comments and strip the PURE comments in the minifier, as they provide no value at runtime
Describe the feature
The current implementation of the minimizers
format.comments
does not allow regex to be used like https://webpack.js.org/plugins/terser-webpack-plugin/#preserve-commentsit instead requires either comments?: false | 'some' | 'all';, would like to propose supporting a regex so that certain comments will be left untouched
Babel plugin or link to the feature description
https://webpack.js.org/plugins/terser-webpack-plugin/#preserve-comments
Additional context
I raised this originally in the rspack repo but was told it can be sent here as well.
The text was updated successfully, but these errors were encountered: