Skip to content

Commit

Permalink
fix: HMR not working correctly with vue-class-component components (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoenescu committed Nov 4, 2021
1 parent 9e47e8e commit 76b1448
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/exportHelper.ts
@@ -1,8 +1,9 @@
// runtime helper for setting properties on components
// in a tree-shakable way
export default (sfc: any, props: [string, string][]) => {
const target = sfc.__vccOpts || sfc
for (const [key, val] of props) {
sfc[key] = val
target[key] = val
}
return sfc
return target
}

0 comments on commit 76b1448

Please sign in to comment.