Open Thiry1 opened 1 week ago
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.
@inottn Thank you for your response. Is there any workaround for this problem?
use @use "deps-lib/index" as deps-lib;
I might be wrong, but after looking at the changelog, I have a feeling that "feat!: use native resolver in loader by @bvanjoi in #4945" might be related.
Right now this is the one blocker stopping me from migrating. Unfortunately this didn't work for me either.
use
@use "deps-lib/index" as deps-lib;
My configuration was:
{
test: /\.(sa|sc|c)ss$/,
use: [
rspack.CssExtractRspackPlugin.loader,
"css-loader",
"sass-loader",
],
type: "javascript/auto",
}
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
https://github.com/Thiry1/rspack-bug-repro/commit/3a294f0056637e5752ef7ccbb079729e5201172e
Reproduce Steps