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 76b1448

Browse filesBrowse files
authored
fix: HMR not working correctly with vue-class-component components (vuejs#1897)
1 parent 9e47e8e commit 76b1448
Copy full SHA for 76b1448

File tree

Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed

‎src/exportHelper.ts

Copy file name to clipboard
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
// runtime helper for setting properties on components
22
// in a tree-shakable way
33
export default (sfc: any, props: [string, string][]) => {
4+
const target = sfc.__vccOpts || sfc
45
for (const [key, val] of props) {
5-
sfc[key] = val
6+
target[key] = val
67
}
7-
return sfc
8+
return target
89
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.