fix(vite): set transform mode for vite-node (#5854)

close #5543
This commit is contained in:
Anthony Fu 2022-07-14 22:00:29 +08:00 committed by Pooya Parsa
parent 009d6762c5
commit 537b6e35bd

View File

@ -63,6 +63,10 @@ function createViteNodeMiddleware (ctx: ViteBuildContext) {
/^#/,
...ctx.nuxt.options.build.transpile as string[]
]
},
transformMode: {
ssr: [/.*/],
web: []
}
})
return async (event) => {