Skip to content

Commit

Permalink
fix: HRM code identifier conflict underfin#195
Browse files Browse the repository at this point in the history
  • Loading branch information
miomio-xiao committed May 17, 2022
1 parent 550e685 commit 2c89c24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2c89c24

Please sign in to comment.