Skip to content

Commit 6a05115

Browse files
liximomoyyx990803
authored andcommitted
fix: use "api.isRecorded" instead of "module.hot.data" (#1569)
1 parent c359a38 commit 6a05115

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/codegen/hotReload.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if (module.hot) {
1919
api.install(require('vue'))
2020
if (api.compatible) {
2121
module.hot.accept()
22-
if (!module.hot.data) {
22+
if (!api.isRecorded('${id}')) {
2323
api.createRecord('${id}', component.options)
2424
} else {
2525
api.${functional ? 'rerender' : 'reload'}('${id}', component.options)

0 commit comments

Comments
 (0)