-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
.swcrc
is not used for JS minify()
#7926
Comments
I'm actually seeing it convert |
This is a symptom of #7928 |
emitAssertForImportAttributes
|
emitAssertForImportAttributes
.swcrc
is not used for JS minify()
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
#7914 introduces an option to keep using
assert
insteadwith
for backward compatibility. It works perfectly fine fortransform
, but the option is not respected when usingminify
even when theemitAssertForImportAttributes
option is specified.I'm actually not sure if this should be considered a bug since
minify
seemingly only takes the options underminify
into account and ignores the rest of the config. But it would be great if there is a way to keepassert
during minification, just like howtransform
behaves.Unfortunately, I'm not familiar enough with Rust and swc to work on a PR. Maybe @kdy1 can look at this.
Config
Input code
No response
Config
No response
Playground link
https://play.swc.rs/?version=1.3.83&code=H4sIAAAAAAAAA8vMLcgvKlGoVkhUqFVIK8rPVVBPVFdILC5OBYuWVBakWimoZxXn56kr1FpzZcKUJ8GVJ6krlGeWZGBRzJVaATNcB6TBmgsAAsbJ7W4AAAA%3D&config=H4sIAAAAAAAAA42VzW7bMAyA732KwOcd2gEdht16KbDDnkFQLMphJ4uGSKcJirz7aMdO3YQOdrP58Ufinz4eNpvqjevq1%2BZDP%2FWn84WhXP5Vwscs%2FqCSSo4dcF2wk%2BrbTIUHJKWHUXI6g0p8aUAGI%2BDvj0%2FPk0GViBhUHH1imGQtZozHZcia2q4A80KmUnXZt5CFv9pPrNA7TydZyLdECXy%2BQ5xnh1mggWI5rikl3zG4vS%2BGl%2BGkviCTFWKAvUBwXaHO5DmgIGWNeUsD%2BOBqCmAgLFAL7sEy01hqllmvZ9xnxAG2fdOMZb6yhr1PvRcjJhzGkuhpDa87QhYX%2B2yl8AxXcnCGU3KvLTG6AtKXfGv3RphXavIXQDOQPHP2LVh%2BR42o%2FbRmHe9aYo7asnI0uPa3dcsMjSbVIUYjs0NmoAha1SwQ%2BhqGzNbWcSa8kj7GAA5i1F4xXPM7Sr2zgg5zTtEAWl8fra46A3eZwhU%2BDMQd%2FKq3FLvBJo3Wy26d8rHdUroToAXZUbijoKUQWsdFt8ShW%2Bd9DqCtAcFU6XkEt0tAB0DIpXFf3vSGjod6dE2i7eeamBROlzXc%2BtyM877Yl0Jdgj2ktTb%2BjxG5S%2FVs%2B6Gr58m%2BmV74aTWl18HDp8cZzVf58nxolqHgsOx9Wj4MQ9zfbUdFXkQKbnW7XrdpBS3KC%2BsjJq9UVpQf5pBjwKql0C%2ByNw7A%2Be36UX0qzc%2FUHK1C%2FjMbjk5P%2FwCn22zDTwcAAA%3D%3D
SWC Info output
No response
Expected behavior
transpiled and minified into
Actual behavior
transpiled and minified into
Version
1.3.83
Additional context
No response
The text was updated successfully, but these errors were encountered: