You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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: