VulcanJS / vulcan-next

The Next starter for GraphQL developers
http://vulcan-docs.vercel.app
MIT License
394 stars 29 forks source link

Switch to Vite builder for storybook #155

Open eric-burel opened 2 years ago

eric-burel commented 2 years ago

Is your feature request related to a problem? Please describe. https://github.com/eirslett/storybook-builder-vite

From IanVS on Storybook Discord: 'It builds the preview pane in vite, at least, and although the storybook ui is still built with webpack, they are working on pre-bundling it so you don't need to use webpack at all.'

Describe alternatives you've considered In response to "Ladle" project: https://www.ladle.dev/ which is basically Storybook with a faster bundler and a few tweaks, we could try to use the Vite builder for storybook for a much faster build.

I'd rather enjoy Storybook rich ecosystem.

Additional context Not sure about the Webpack compatibility, Next still use Webpack at the time of writing.

eric-burel commented 2 years ago

First experiment with Remix show that this should be trivial, testing-react works ok as well