diff --git a/packages/vite/src/vite-node.ts b/packages/vite/src/vite-node.ts index 8b901e510b..28bf6a8d76 100644 --- a/packages/vite/src/vite-node.ts +++ b/packages/vite/src/vite-node.ts @@ -123,16 +123,10 @@ function createViteNodeApp (ctx: ViteBuildContext, invalidates: Set = 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: {