MCPcopy
hub / github.com/vuejs/core / updateComponentDef

Function updateComponentDef

packages/runtime-core/src/hmr.ts:192–202  ·  view source on GitHub ↗
(
  oldComp: ComponentOptions,
  newComp: ComponentOptions,
)

Source from the content-addressed store, hash-verified

190}
191
192function 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
204function tryWrap(fn: (id: string, arg: any) => any): Function {
205 return (id: string, arg: any) => {

Callers 1

reloadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected