-
-
Notifications
You must be signed in to change notification settings - Fork 562
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
refactor!: align css runtime #7306
Conversation
✅ Deploy Preview for rspack ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
41b2bd4
to
4dd37c5
Compare
1e55e09
to
532868b
Compare
647610e
to
7344d7b
Compare
7344d7b
to
6377d98
Compare
Test Compatibility Diff
Unpassed tests4 🔴 Stats chunkGroups: TODO |
6377d98
to
ebeef39
Compare
Please add the breaking change label 👮♀️ |
close #6186
Summary
Align CSS loading with webpack.
What's the differences
Webpack stores info of css module inside
css
file content, and parse them on style load, them register css modules (add them to webpack_modules), but Rspack register them insidejavascript
file content directly at compile time,this could cause there are many useless css modules leaving in the final output, see #6186.
Breaking Change !
Webpack uses css variable to store the metadata, and getComputedStyle to get the css metadata, so make sure your target browser has support for them
Checklist