Skip to content

Commit 18b9b55

Browse files
committed
wip: add debug time
1 parent be2ae2a commit 18b9b55

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ export class FullBundleDevEnvironment extends DevEnvironment {
106106
patched: this.state.patched,
107107
}
108108

109+
const startTime = Date.now()
109110
let hmrOutput: HmrOutput[]
110111
try {
111112
// NOTE: only single outputOptions is supported here
@@ -127,6 +128,10 @@ export class FullBundleDevEnvironment extends DevEnvironment {
127128
debug?.(`ignored file change for ${file}`)
128129
return
129130
}
131+
const generateTime = Date.now()
132+
debug?.(
133+
`GENERATING-HMR-PATCH: patch generated in ${generateTime - startTime}ms`,
134+
)
130135

131136
for (const output of hmrOutput) {
132137
this.handleHmrOutput(file, output, this.state)

0 commit comments

Comments
 (0)