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
Storybook, by default, loads a vite.config file in the project root. The same goes for Vitest. However, users can customize the vite config path like so:
Some people have a vite config file for their app and another for Storybook. The sb add command won't detect a vite config file in the Storybook dir (though we could), so it can end up referring to the wrong config file when setting things up.
💡 Solutions/Action items:
We can start checking the vite config file from the storybook configDir first
We should make this clear in our docs, if it isn't already
The text was updated successfully, but these errors were encountered:
If this code was defined in a preset property viteFinal instead, this would be automatically compatible, and it would make the vite builder less custom.
Storybook, by default, loads a
vite.config
file in the project root. The same goes for Vitest. However, users can customize the vite config path like so:Vitest will not know about this, unless users manually load such vite config file in their vitest config file like so:
Some people have a vite config file for their app and another for Storybook. The
sb add
command won't detect a vite config file in the Storybook dir (though we could), so it can end up referring to the wrong config file when setting things up.💡 Solutions/Action items:
The text was updated successfully, but these errors were encountered: