File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
packages/vite/src/node/server/environments Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1- import path from 'node:path'
21import type { RolldownBuild , RolldownOptions } from 'rolldown'
32import type { Update } from 'types/hmrPayload'
43import colors from 'picocolors'
@@ -12,7 +11,7 @@ import { getHmrImplementation } from '../../plugins/clientInjections'
1211import { DevEnvironment , type DevEnvironmentContext } from '../environment'
1312import type { ResolvedConfig } from '../../config'
1413import type { ViteDevServer } from '../../server'
15- import { arraify , createDebugger , normalizePath } from '../../utils'
14+ import { arraify , createDebugger } from '../../utils'
1615import { prepareError } from '../middlewares/error'
1716
1817const 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 ) {
You can’t perform that action at this time.
0 commit comments