Replies: 1 comment
-
@brupelo are you using storybook 6.5 or 7.0? I think you might have more luck with 7.0, which automatically uses your vite config. Otherwise, you need to do some work in |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I've bootstrapped a
JavaScript + SWC
vite app that uses storybook builder-vite and when I runnpm run dev
alias will work perfectly but when I try storybook (no modifications) I'll get some crashes.Here's my
vite.config.js
:And here's
.storybook/main.cjs
:Are these crashes considered a bug? If this behaviour is intended, what'd be the proper way to configure
.storybook/main.cjs
to use vite's config? Is this documented somewhere?Thanks in advance.
References:
Beta Was this translation helpful? Give feedback.
All reactions