-
-
Notifications
You must be signed in to change notification settings - Fork 594
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
.css file not bundled while using builtin:swc-loader #8167
Comments
Node - v18.12.0; Here is a reproduction demo: |
try it |
no, still the same. actually the reproduction demo is a dumbed down version of the code. In the actual codebase, the class definitions from Let me mention some patterns I have observed.
So I believe the problem has something to do with package.json of Here is the
|
This might be related to the value of |
Yes @inottn , it is related to |
In fact, the |
The problem is I cannot change the This problem does not occur when I use |
I tried The rspack config remains the same, the only change is that I am using |
Try setting optimization.sideEffects: false? |
yes setting it to |
This issue has been automatically marked as stale because it has not had recent activity. If this issue is still affecting you, please leave any comment (for example, "bump"). We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment! |
I am using a package called
plyr-react
for video player support in an application.plyr-react
exports aplyr.css
file, which is not being included in my final bundle even after being referenced in the entry file.Here is my rspack config
And here you can see me referencing
plyr.css
along withcss-component.css
.Here are the bundled files
And here you can see the bundled
main.css
, which does not include CSS code fromplyr.css
This issue does not occur when I use
babel-loader
.The text was updated successfully, but these errors were encountered: