We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70a4dd7 commit 3c55392Copy full SHA for 3c55392
packages/vite/src/node/build.ts
@@ -1002,16 +1002,15 @@ async function buildEnvironment(
1002
1003
const startTime = Date.now()
1004
const hmrOutput = (await bundle!.generateHmrPatch([file]))!
1005
- // TODO(underfin): rebuild at first could be work.
+
1006
+ await handleHmrOutput(hmrOutput, file)
1007
1008
if (hmrOutput.patch) {
1009
await build()
1010
logger.info(
1011
`${colors.green(`✓ rebuilt in ${displayTime(Date.now() - startTime)}`)}`,
1012
)
1013
}
- await handleHmrOutput(hmrOutput, file)
-
1014
- // TODO(underfin): The invalidate case is failed because the hmrInvalidate is hang after rebuild at here .
1015
})
1016
server.hot.on(
1017
'vite:invalidate',
0 commit comments