Skip to content

Commit

Permalink
fix(vite): inline shared folder in dev mode (#30690)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Jan 22, 2025
1 parent 802f387 commit 10a5495
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/vite/src/vite-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ import { isAbsolute, 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'
Expand Down Expand Up @@ -120,10 +119,6 @@ function createViteNodeApp (ctx: ViteBuildContext, invalidates: Set<string> = ne
/^#/,
/\?/,
],
external: [
'#shared',
new RegExp('^' + escapeStringRegexp(withTrailingSlash(resolve(ctx.nuxt.options.rootDir, ctx.nuxt.options.dir.shared)))),
],
},
transformMode: {
ssr: [/.*/],
Expand Down

0 comments on commit 10a5495

Please sign in to comment.