We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c316d43 commit a13cfbdCopy full SHA for a13cfbd
packages/plugin-vue-jsx/src/index.ts
@@ -222,10 +222,11 @@ function vueJsxPlugin(options: Options = {}): Plugin {
222
callbackCode += `\n__VUE_HMR_RUNTIME__.reload("${id}", __${exported})`
223
}
224
225
- code += `\nimport.meta.hot.accept(({${hotComponents
+ const newCompNames = hotComponents
226
.map((c) => `${c.exported}: __${c.exported}`)
227
- .join(',')}}) => {${callbackCode}\n})`
+ .join(',')
228
229
+ code += `\nimport.meta.hot.accept(({${newCompNames}}) => {${callbackCode}\n})`
230
result.code = code
231
232
0 commit comments