Skip to content

Commit f9dd610

Browse files
committed
fix: update hmr api usage
1 parent 4ad1be9 commit f9dd610

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotReload.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if (module.hot) {
1010
script.__hmrId = "${id}"
1111
const api = __VUE_HMR_RUNTIME__
1212
module.hot.accept()
13-
if (!api.createRecord('${id}')) {
13+
if (!api.createRecord('${id}', script)) {
1414
api.reload('${id}', script)
1515
}
1616
${templateRequest ? genTemplateHotReloadCode(id, templateRequest) : ''}

0 commit comments

Comments
 (0)