Feature request: Turbosnap for non-webpack builders
See original GitHub issueHi, I help to maintain storybook-builder-vite, a non-webpack builder for storybook. At work, we’ve hit our chromatic snapshot limit, and I was looking into using turbosnap, but it requires a webpack stats file, unfortunately. I’m poking around to see if I can build a rollup plugin that can generate such a file, but even if I do, I think there are other assumptions baked into the code that the project is a webpack project (e.g. it expects a generated-stories-entry.js
entrypoint, which storybook-builder-vite does not create, although we could consider doing so if necessary). We’ll see how far I can get with this, but I wanted to create an issue to at least raise the request and help track any work that might be going on in this area.
Thanks!
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:5 (5 by maintainers)
Top GitHub Comments
Vite support has been released in 6.5.0.
Hey Ian, let’s look into this together sometime. I’m not available right now but if you email me at gert @ chromatic then we can schedule a meeting.
In the meantime, you can use --diagnostics to get turbosnap metadata.