Skip to content
This repository was archived by the owner on Feb 17, 2023. It is now read-only.

Commit 0248eff

Browse files
authored
fix: HMR identifier conflict (#196)
1 parent 550e685 commit 0248eff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ function genHmrCode(
250250
const idJSON = JSON.stringify(id)
251251
return `\n/* hot reload */
252252
import __VUE_HMR_RUNTIME__ from ${JSON.stringify(vueHotReload)}
253-
import vue from "vue"
254-
__VUE_HMR_RUNTIME__.install(vue)
253+
import __VUE_IDENTIFIER__ from "vue"
254+
__VUE_HMR_RUNTIME__.install(__VUE_IDENTIFIER__)
255255
if(!import.meta.env.SSR && __VUE_HMR_RUNTIME__.compatible){
256256
if (!__VUE_HMR_RUNTIME__.isRecorded(${idJSON})) {
257257
__VUE_HMR_RUNTIME__.createRecord(${idJSON}, __component__.options)

0 commit comments

Comments
 (0)