( oldComp: ComponentOptions, newComp: ComponentOptions, )
| 190 | } |
| 191 | |
| 192 | function updateComponentDef( |
| 193 | oldComp: ComponentOptions, |
| 194 | newComp: ComponentOptions, |
| 195 | ) { |
| 196 | extend(oldComp, newComp) |
| 197 | for (const key in oldComp) { |
| 198 | if (key !== '__file' && !(key in newComp)) { |
| 199 | delete oldComp[key] |
| 200 | } |
| 201 | } |
| 202 | } |
| 203 | |
| 204 | function tryWrap(fn: (id: string, arg: any) => any): Function { |
| 205 | return (id: string, arg: any) => { |