Hi everyone.
Im wondering is it possible to import css files into js using import syntax with preserveModules:true in rollup config?
Bundling all css in one file is not an option, because Im making ui library. Also injecting css to works bad on Nextjs.
Bellow file structure of what Im trying to achieve.
index.js
Source files structure
-src
--components
---button
----index.ts
----index.module.css
---link
----index.ts
----index.module.css
Expected transpiled files structure
-lib
--components
---button
----index.js
----index.css
---link
----index.js
----index.css