fix(vite): remove duplicate entries

This commit is contained in:
Daniel Roe 2025-01-16 16:50:51 +00:00
parent d2db0b7e50
commit bbb10046b0
No known key found for this signature in database
GPG Key ID: 3714AB03996F442B

View File

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