We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4e0bbe commit bea196dCopy full SHA for bea196d
packages/vue-jsx-vapor/src/core/hmr.ts
@@ -111,11 +111,7 @@ export function injectHMRAndSSR(
111
`\n${local}.__hmrId = "${id}";` +
112
`\n__VUE_HMR_RUNTIME__.createRecord("${id}", ${local});`
113
callbackCode += `
114
- if (typeof mod['${exported}'] === 'function') {
115
- __VUE_HMR_RUNTIME__.rerender(mod['${exported}'].__hmrId, mod['${exported}']);
116
- } else {
117
- __VUE_HMR_RUNTIME__.reload(mod['${exported}'].__hmrId, mod['${exported}']);
118
- };`
+ __VUE_HMR_RUNTIME__[typeof mod['${exported}'] === 'function' ? 'rerender' : 'reload'](mod['${exported}'].__hmrId, mod['${exported}']);`
119
}
120
121
code += `
0 commit comments