You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the configuration and script as follows. I expect that the swc-loader rule will be matched when without import attributes, but it actually does not. Btw, it works as expected in webpack.
importtestStrfrom"./test.tsx"with{type: "raw"};// => expect match `asset/source` ruleimporttestfrom"./test.tsx";// => expect match `swc-loader` rule, actually no
What problem does this feature solve?
I have the configuration and script as follows. I expect that the
swc-loader
rule will be matched when without import attributes, but it actually does not. Btw, it works as expected in webpack.What does the proposed API of configuration look like?
I think the problem is when
attributes
does not exist, it should return true ifLogicalCondition not
exists.rspack/crates/rspack_core/src/utils/module_rules.rs
Lines 171 to 185 in d97d69f
Maybe we can refer to webpack's design and set a
matchWhenEmpty
flag for each condition.https://github.com/webpack/webpack/blob/8b864dbe81bd73f0e7d101f7c9563bdedf00c392/lib/rules/RuleSetCompiler.js#L326
The text was updated successfully, but these errors were encountered: