Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
fix(vite): set transform mode for vite-node (#5854)
Browse files Browse the repository at this point in the history
close #5543
  • Loading branch information
antfu authored and pi0 committed Jul 14, 2022
1 parent 009d676 commit 537b6e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/vite/src/vite-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ function createViteNodeMiddleware (ctx: ViteBuildContext) {
/^#/,
...ctx.nuxt.options.build.transpile as string[]
]
},
transformMode: {
ssr: [/.*/],
web: []
}
})
return async (event) => {
Expand Down

0 comments on commit 537b6e3

Please sign in to comment.