We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 899080a commit 162a21fCopy full SHA for 162a21f
src/hotReload.ts
@@ -7,6 +7,7 @@ export function genHotReloadCode(
7
return `
8
/* hot reload */
9
if (module.hot) {
10
+ script.__hmrId = "${id}"
11
const api = __VUE_HMR_RUNTIME__
12
module.hot.accept()
13
if (!api.createRecord('${id}', script)) {
src/index.ts
@@ -184,7 +184,6 @@ const loader: webpack.loader.Loader = function(source: string) {
184
}
185
186
if (needsHotReload) {
187
- code += `\nscript.__hmrId = "${id}"`
188
code += genHotReloadCode(id, templateRequest)
189
190
0 commit comments