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 should be possible to pass preamble. SWC should be able to insert it to the minified file without breaking source map associations.
Babel plugin or link to the feature description
No response
Additional context
FWIW, jQuery is currently switching from UglifyJS to Terser in jquery/jquery#5258. We considered switching to SWC instead as it's way faster and optimizes better than Terser but the lack of the preamble option is a blocker for us at the moment.
The text was updated successfully, but these errors were encountered:
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Describe the feature
See https://swc.rs/docs/configuration/minification#jscminifyformat
It should be possible to pass
preamble
. SWC should be able to insert it to the minified file without breaking source map associations.Babel plugin or link to the feature description
No response
Additional context
FWIW, jQuery is currently switching from UglifyJS to Terser in jquery/jquery#5258. We considered switching to SWC instead as it's way faster and optimizes better than Terser but the lack of the
preamble
option is a blocker for us at the moment.The text was updated successfully, but these errors were encountered: