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
  • Loading branch information
yannbf authored Dec 28, 2023
2 parents e2c05c6 + 028652d commit aa0b69c
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 aa0b69c

Please sign in to comment.