-
-
Notifications
You must be signed in to change notification settings - Fork 638
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
[Bug]: Build failure when using dependency library that provides both JS and CSS files #8057
Comments
Restriction with regex is not yet supported, I guess it's related to this. |
@inottn Thank you for your response. Is there any workaround for this problem? |
I investigated the issue, and it has been occurring since version 1.0.0-alpha.3. |
use |
Right now this is the one blocker stopping me from migrating. Unfortunately this didn't work for me either.
My configuration was: {
test: /\.(sa|sc|c)ss$/,
use: [
rspack.CssExtractRspackPlugin.loader,
"css-loader",
"sass-loader",
],
type: "javascript/auto",
} |
After some investigation, I found that the following setting in package.json solved the problem in my environment {
"style": "./index.scss",
} |
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! |
bump |
System Info
Details
When attempting to import a library that provides both JS and SCSS files in SCSS using
@import
, the JS file is imported instead of the SCSS, causing a build error.I am using the following rule:
The same issue occurs even when using the following configuration with experiments.css is true:
I have confirmed that the build works without issues when using Webpack.
Reproduce link
Thiry1/rspack-bug-repro@3a294f0
Reproduce Steps
The text was updated successfully, but these errors were encountered: