From 83c44abc2bcc23f2c3a8daa612e07b101cc21c66 Mon Sep 17 00:00:00 2001 From: orblazer Date: Wed, 21 Feb 2018 18:30:34 +0100 Subject: [PATCH] fix: Update the condition for vue HMR (#1120) --- src/plugins/vue/VuePlugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/vue/VuePlugin.ts b/src/plugins/vue/VuePlugin.ts index a5e3374e0..7ff004847 100644 --- a/src/plugins/vue/VuePlugin.ts +++ b/src/plugins/vue/VuePlugin.ts @@ -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); } }