diff --git a/lib/codegen/hotReload.js b/lib/codegen/hotReload.js index 4f426b4d0..a1315a89d 100644 --- a/lib/codegen/hotReload.js +++ b/lib/codegen/hotReload.js @@ -19,7 +19,7 @@ if (module.hot) { api.install(require('vue')) if (api.compatible) { module.hot.accept() - if (!module.hot.data) { + if (!api.isRecorded('${id}')) { api.createRecord('${id}', component.options) } else { api.${functional ? 'rerender' : 'reload'}('${id}', component.options)