I don't get it #494
Replies: 1 comment 3 replies
-
Storybook has two parts, a manager (which is the storybook UI: sidebar, addons, toolbar), and the preview (the canvas where your components are rendered). When you use the Vite builder, it replaces Webpack inside the preview with Vite, so that your components are rendered using Vite. The manager itself is still built using Webpack 4 currently. In Storybook 7, Webpack won't be installed at all if you're using a Vite framework. The manager is now being pre-bundled with esbuild. If you'd like to try out version 7, you can run |
Beta Was this translation helpful? Give feedback.
-
This project purports to use Vite, and perhaps in some way it does, but when I follow the instructions on a new Vite project, and then run
npm run storybook
, I'm seeing:Which is obviously webpack (and old version to boot), and not Vite.
Sorry, but what am I missing?
Beta Was this translation helpful? Give feedback.
All reactions