chore: remove config that will be respected by vite-node

This commit is contained in:
Daniel Roe 2025-01-16 17:02:46 +00:00
parent 40f2e666f2
commit f5574fc9ca
No known key found for this signature in database
GPG Key ID: 3714AB03996F442B

View File

@ -123,16 +123,10 @@ function createViteNodeApp (ctx: ViteBuildContext, invalidates: Set<string> = ne
// Common
/^#/,
/\?/,
...(
viteServer.config.ssr.noExternal && viteServer.config.ssr.noExternal !== true
? toArray(viteServer.config.ssr.noExternal)
: []
),
],
external: [
'#shared',
new RegExp('^' + escapeStringRegexp(withTrailingSlash(resolve(ctx.nuxt.options.rootDir, ctx.nuxt.options.dir.shared)))),
...(viteServer.config.ssr.external as string[]) || [],
],
},
transformMode: {