From 2c89c241a3fd4d5caec5c6076199c283686aef1a Mon Sep 17 00:00:00 2001 From: miomio-xiao Date: Tue, 17 May 2022 23:58:43 +0800 Subject: [PATCH] fix: HRM code identifier conflict #195 --- src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index eb1c667..6db1ddf 100644 --- a/src/main.ts +++ b/src/main.ts @@ -250,8 +250,8 @@ function genHmrCode( const idJSON = JSON.stringify(id) return `\n/* hot reload */ import __VUE_HMR_RUNTIME__ from ${JSON.stringify(vueHotReload)} -import vue from "vue" -__VUE_HMR_RUNTIME__.install(vue) +import __VUE_IDENTIFIER__ from "vue" +__VUE_HMR_RUNTIME__.install(__VUE_IDENTIFIER__) if(!import.meta.env.SSR && __VUE_HMR_RUNTIME__.compatible){ if (!__VUE_HMR_RUNTIME__.isRecorded(${idJSON})) { __VUE_HMR_RUNTIME__.createRecord(${idJSON}, __component__.options)