swc-project / swc-node

Faster ts-node without typecheck
MIT License
1.76k stars 73 forks source link

module-name-mapper to handle CSS #641

Open janhesters opened 2 years ago

janhesters commented 2 years ago

I'm trying to use SWC-Node for a React project. Everything works so far, except for handling CSS imports.

With Babel, we used to use the module-name-mapper plugin to replace all .css file with something that exports an empty object.

Is there a way to do this, too?

PS: I created a StackOverflow question with a link to a minimal reproducible example here.