Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Commit

Permalink
fix: Update the condition for vue HMR (#1120)
Browse files Browse the repository at this point in the history
  • Loading branch information
orblazer authored and nchanged committed Feb 21, 2018
1 parent a3d61ab commit 83c44ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/vue/VuePlugin.ts
Expand Up @@ -269,7 +269,7 @@ export class VueComponentClass implements Plugin {
if (${process}.env.NODE_ENV !== "production") {
var api = require('vue-hot-reload-api');
if (__VUE_HOT_MAP__ && !__VUE_HOT_MAP__['${moduleId}']) {
if (api && !api.isRecorded('${moduleId}')) {
api.createRecord('${moduleId}', module.exports.default);
}
}
Expand Down

0 comments on commit 83c44ab

Please sign in to comment.