fix(vite): narrow vite-node inline pattern (#21224)

This commit is contained in:
Daniel Roe 2023-05-28 18:54:24 -05:00 committed by GitHub
parent 9723add182
commit b7547c3ce1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,7 +118,7 @@ function createViteNodeApp (ctx: ViteBuildContext, invalidates: Set<string> = ne
const node: ViteNodeServer = new ViteNodeServer(viteServer, {
deps: {
inline: [
/\/(nuxt|nuxt3)\//,
/\/node_modules\/(.*\/)?(nuxt|nuxt3)\//,
/^#/,
...transpile({ isServer: true, isDev: ctx.nuxt.options.dev })
]