Closed joemckenney closed 2 years ago
Thanks for the report. I think I know what's causing this. Will look into a fix next week.
@mattcompiles I created minimal reproductions here:
@vanilla-extract/esbuild-plugin@2.0.3 - https://github.com/joemckenney/vanilla-extract-esbuild-plugin-bug @vanilla-extract/esbuild-plugin@2.0.4 - https://github.com/joemckenney/vanilla-extract-esbuild-plugin-bug/tree/joe/vanilla-extract-esbuild-plugin-upgrade
I checked in the dist/
dirs so you don't have to build (but if you do want to a yarn; npx turbo run build;
from the top of the repo will do the trick).
Describe the bug
After upgrading from @vanilla-extract/esbuild-plugin@2.0.3 to @vanilla-extract/esbuild-plugin@2.0.4 the component packages in our design system with different styling produce colliding class names.
Button Component + vanilla-extract/esbuild-plugin usage
Modal Component + vanilla-extract/esbuild-plugin usage
Button CSS
Modal CSS
With @vanilla-extract/esbuild-plugin@2.0.3
Link to reproduction
See above. The design system is not yet open source so a reproduction may take a moment. If you can't make progress w/o it let me know and I can try to create some minimal reproduction.
System Info
All of our design system components have the following relevant dev deps