mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-18 17:35:57 +00:00
fix(vite): remove duplicate entries
This commit is contained in:
parent
d2db0b7e50
commit
bbb10046b0
@ -124,19 +124,16 @@ function createViteNodeApp (ctx: ViteBuildContext, invalidates: Set<string> = ne
|
|||||||
// Common
|
// Common
|
||||||
/^#/,
|
/^#/,
|
||||||
/\?/,
|
/\?/,
|
||||||
/\/node_modules\/(.*\/)?(nuxt|nuxt3|nuxt-nightly)\//,
|
|
||||||
...(
|
...(
|
||||||
viteServer.config.ssr.noExternal && viteServer.config.ssr.noExternal !== true
|
viteServer.config.ssr.noExternal && viteServer.config.ssr.noExternal !== true
|
||||||
? toArray(viteServer.config.ssr.noExternal)
|
? toArray(viteServer.config.ssr.noExternal)
|
||||||
: []
|
: []
|
||||||
),
|
),
|
||||||
...transpile({ isServer: true, isDev: ctx.nuxt.options.dev }),
|
|
||||||
],
|
],
|
||||||
external: [
|
external: [
|
||||||
'#shared',
|
'#shared',
|
||||||
new RegExp('^' + escapeStringRegexp(withTrailingSlash(resolve(ctx.nuxt.options.rootDir, ctx.nuxt.options.dir.shared)))),
|
new RegExp('^' + escapeStringRegexp(withTrailingSlash(resolve(ctx.nuxt.options.rootDir, ctx.nuxt.options.dir.shared)))),
|
||||||
...(viteServer.config.ssr.external as string[]) || [],
|
...(viteServer.config.ssr.external as string[]) || [],
|
||||||
/node_modules/,
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
transformMode: {
|
transformMode: {
|
||||||
|
Loading…
Reference in New Issue
Block a user