@vanilla-extract/vite-plugin loads css files multiple times in Storybook when using theme #1488
Open
2 tasks done
Labels
vite
Issue related to vite
Describe the bug
Minimal Problem:
When using themes, vite loads a new
(filename).css.ts.vanilla.css?t=1728553686586
file for every other file that uses itin the development build of storybook.Expected:
Each .css.ts file should only be loaded once (until it changes and causes a hot reload)
Problem:
This might not be an issue on the small reproducible project, but on a larger project, where multiple theme files are composited, each of the theme files is loaded for each component using a theme value. This causes so many file loads that it freezes storybook.
Reproduction
https://github.com/SamBernaerdtOntoforce/vanilla-extract-theme-and-storybook
System Info
Used Package Manager
yarn
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: