Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f9dd610

Browse filesBrowse files
committed
fix: update hmr api usage
1 parent 4ad1be9 commit f9dd610
Copy full SHA for f9dd610

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/hotReload.ts

Copy file name to clipboardExpand all lines: src/hotReload.ts
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.