-
-
Notifications
You must be signed in to change notification settings - Fork 667
feat: swc loader support emitAssertForImportAttributes config #9826
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
Conversation
✅ Deploy Preview for rspack ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
CodSpeed Performance ReportMerging #9826 will not alter performanceComparing 🎉 Hooray!
|
assert
tranform to with
assert
tranform to with
for webpack test case
c3773f7
to
12f0c1f
Compare
assert
tranform to with
for webpack test caseThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may need to update the schema too: #10055
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never mind, it has been included in the schema PR
972066a
972066a
to
cf381bf
Compare
CI failed |
Summary
closes: #9780
related issue: swc-project/swc#10286 (comment)
The default behavior of swc will transform
import-attributes
's keyword fromassert
towith
, in this case, we can use configjsc.experimental.emitAssertForImportAttributes
to keep theassert
keyword to align the output test case with webpack.Juat as the playground show:
https://play.swc.rs/?version=1.11.13&code=H4sIAAAAAAAAA8vMLcgvKlEoSEzOTkxP9Qr291NIK8rPVVDS04eK6WUV5%2BcpKSQWF6cCFVaXVBakWikogQVrrbmS8%2FOK83NS9XLy0zWQDNG0BgDW5p%2FHWQAAAA%3D%3D&config=H4sIAAAAAAAAA0WPMQ7CMAxF954i8twBdWBgY0Fi4BChWCjQNJHtSK2q3B23Tcpmfz9%2Ffy%2BNMfDhHi5m0VKbaImRjl4Vnkexkyogc0TuyUWBbZjbfUcsvVFWArk7dR0UHaeI5Dzq%2FrA6mmr5RYx3HwPJlfWauDCyAkIJ28qgd2V6C1RgEXLPJFjhwuamZAEfXmnA%2Fzdr4j3XGQ7I8aNim0lufpUNp%2B0HAQAA
Checklist