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'
2
1
import type { RolldownBuild , RolldownOptions } from 'rolldown'
3
2
import type { Update } from 'types/hmrPayload'
4
3
import colors from 'picocolors'
@@ -12,7 +11,7 @@ import { getHmrImplementation } from '../../plugins/clientInjections'
12
11
import { DevEnvironment , type DevEnvironmentContext } from '../environment'
13
12
import type { ResolvedConfig } from '../../config'
14
13
import type { ViteDevServer } from '../../server'
15
- import { arraify , createDebugger , normalizePath } from '../../utils'
14
+ import { arraify , createDebugger } from '../../utils'
16
15
import { prepareError } from '../middlewares/error'
17
16
18
17
const debug = createDebugger ( 'vite:full-bundle-mode' )
@@ -218,7 +217,7 @@ export class FullBundleDevEnvironment extends DevEnvironment {
218
217
try {
219
218
// NOTE: only single outputOptions is supported here
220
219
hmrOutput = await this . state . bundle . hmrInvalidate (
221
- normalizePath ( path . join ( this . config . root , m . path ) ) ,
220
+ m . path ,
222
221
m . firstInvalidatedBy ,
223
222
)
224
223
} catch ( e ) {
You can’t perform that action at this time.
0 commit comments