diff --git a/packages/vite/src/vite-node.ts b/packages/vite/src/vite-node.ts index ee29478ea1..28c9e04bbd 100644 --- a/packages/vite/src/vite-node.ts +++ b/packages/vite/src/vite-node.ts @@ -6,9 +6,8 @@ import { isAbsolute, join, normalize, resolve } from 'pathe' // import { addDevServerHandler } from '@nuxt/kit' import { isFileServingAllowed } from 'vite' import type { ModuleNode, Plugin as VitePlugin } from 'vite' -import { getQuery, withTrailingSlash } from 'ufo' +import { getQuery } from 'ufo' import { normalizeViteManifest } from 'vue-bundle-renderer' -import escapeStringRegexp from 'escape-string-regexp' import { distDir } from './dirs' import type { ViteBuildContext } from './vite' import { isCSS } from './utils' @@ -120,10 +119,6 @@ function createViteNodeApp (ctx: ViteBuildContext, invalidates: Set = ne /^#/, /\?/, ], - external: [ - '#shared', - new RegExp('^' + escapeStringRegexp(withTrailingSlash(resolve(ctx.nuxt.options.rootDir, ctx.nuxt.options.dir.shared)))), - ], }, transformMode: { ssr: [/.*/],