extract CSS with esbundle without the bundle: true
option
#131
-
Hi I'm building a react design-system where every single component is published on npm. Given a structure like:
my desired output is something like this:
And inside the Button.js dist file the required CSS with a require statement: But the esbundle plugin only exports the CSS file with the bundle options with true. Any suggestion? Thank you :D |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey Bud 👋 , This is an |
Beta Was this translation helpful? Give feedback.
Hey Bud 👋 ,
This is an
esbuild
limitation as plugins are only activated whenbundle
is true. You could bundle each file individually by walking the file system with a script but that would be pretty unideal.