-
Hello, I have been trying to setup a module rule in the config via tools.rspack where I unshift the rules (insert new rule at the start) to target imports like However when I build the rsbuild application it fails with the following error:
My config (the rspack part) looks like this:
Any clue as to what I need to do to support this correctly with rspack? In short, I need normal css imports in ts files to work as normal whereby they are processed, extracted and then injected inline as usual; but when importing with |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
In the end I gave up trying to configure rsbuild so that I could use
This works as I need/want it to, just a shame I have to create the style sheet and sync replace it opposed to just importing a sheet directly. |
Beta Was this translation helpful? Give feedback.
In the end I gave up trying to configure rsbuild so that I could use
import sheet from "./styles.css?sheet"
. Since CSS and the SASS plugin support?inline
queries, I ended up doing this instead:This works as I need/want it to, just a shame I have to create the style sheet and sync replace it opposed to just importing a sheet directly.