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

fix: HMR identifier conflict #196

Merged
merged 1 commit into from
May 18, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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