Skip to content

Commit

Permalink
Merge pull request #25329 from storybookjs/yann/pre-transform-error-v…
Browse files Browse the repository at this point in the history
…ite-5

Vite: Fix pre-transform error in Vite 5
(cherry picked from commit aa0b69c)
  • Loading branch information
yannbf authored and storybook-bot committed Dec 29, 2023
1 parent f1f91bf commit 34adb1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/builders/builder-vite/src/vite-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export async function createViteServer(options: Options, devServer: Server) {

const config = {
...commonCfg,
// Needed in Vite 5: https://github.com/storybookjs/storybook/issues/25256
assetsInclude: ['/sb-preview/**'],
// Set up dev server
server: {
middlewareMode: true,
Expand Down

0 comments on commit 34adb1a

Please sign in to comment.