Skip to content

Commit a3fc19d

Browse files
committed
fix: use inputFile.hmrAvailable()
1 parent 33ee559 commit a3fc19d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vue3/src/compiler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export class VueCompiler extends MultiFileCachingCompiler {
7676
}
7777

7878
// HMR
79-
if (process.env.NODE_ENV !== 'production') {
79+
if (process.env.NODE_ENV !== 'production' && inputFile.hmrAvailable()) {
8080
compileResult.source += genHotReloadCode(scopeId)
8181
}
8282

0 commit comments

Comments
 (0)