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 8e1b8f7 commit 939105bCopy full SHA for 939105b
packages/vite/src/node/build.ts
@@ -987,16 +987,15 @@ async function buildEnvironment(
987
988
const startTime = Date.now()
989
const hmrOutput = (await bundle!.generateHmrPatch([file]))!
990
- // TODO(underfin): rebuild at first could be work.
+
991
+ await handleHmrOutput(hmrOutput, file)
992
993
if (hmrOutput.patch) {
994
await build()
995
logger.info(
996
`${colors.green(`✓ rebuilt in ${displayTime(Date.now() - startTime)}`)}`,
997
)
998
}
- await handleHmrOutput(hmrOutput, file)
-
999
- // TODO(underfin): The invalidate case is failed because the hmrInvalidate is hang after rebuild at here .
1000
})
1001
server.hot.on(
1002
'vite:invalidate',
0 commit comments