Skip to content

Commit 84f6df3

Browse files
committed
wip: pass path as-is to hmrInvalidate
1 parent d417fe5 commit 84f6df3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/vite/src/node/server/environments/fullBundleEnvironment.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import path from 'node:path'
21
import type { RolldownBuild, RolldownOptions } from 'rolldown'
32
import type { Update } from 'types/hmrPayload'
43
import colors from 'picocolors'
@@ -12,7 +11,7 @@ import { getHmrImplementation } from '../../plugins/clientInjections'
1211
import { DevEnvironment, type DevEnvironmentContext } from '../environment'
1312
import type { ResolvedConfig } from '../../config'
1413
import type { ViteDevServer } from '../../server'
15-
import { arraify, createDebugger, normalizePath } from '../../utils'
14+
import { arraify, createDebugger } from '../../utils'
1615
import { prepareError } from '../middlewares/error'
1716

1817
const debug = createDebugger('vite:full-bundle-mode')
@@ -218,7 +217,7 @@ export class FullBundleDevEnvironment extends DevEnvironment {
218217
try {
219218
// NOTE: only single outputOptions is supported here
220219
hmrOutput = await this.state.bundle.hmrInvalidate(
221-
normalizePath(path.join(this.config.root, m.path)),
220+
m.path,
222221
m.firstInvalidatedBy,
223222
)
224223
} catch (e) {

0 commit comments

Comments
 (0)