Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit76b1448

Browse files
authored
fix: HMR not working correctly with vue-class-component components (#1897)
1 parent9e47e8e commit76b1448

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/exportHelper.ts

Lines 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
exportdefault(sfc:any,props:[string,string][])=>{
4+
consttarget=sfc.__vccOpts||sfc
45
for(const[key,val]ofprops){
5-
sfc[key]=val
6+
target[key]=val
67
}
7-
returnsfc
8+
returntarget
89
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp