TS already transpiles spread to Object.assign with target:es2016
dep.add(activeEffect!)
activeEffect!.deps.push(dep)
if (__DEV__ && activeEffect!.onTrack) {
- activeEffect!.onTrack(
- Object.assign(
- {
- effect: activeEffect!
- },
- debuggerEventExtraInfo
- )
- )
+ activeEffect!.onTrack({
+ effect: activeEffect!,
+ ...debuggerEventExtraInfo!
+ })
}
}
}
hydrate?: RootHydrateFunction
): CreateAppFunction<HostElement> {
return function createApp(rootComponent, rootProps = null) {
-
if (!isFunction(rootComponent)) {
rootComponent = { ...rootComponent }
}
effect,
null,
(__DEV__
- ? Object.assign(options || {}, { flush: 'post' })
+ ? { ...options, flush: 'post' }
: { flush: 'post' }) as WatchOptionsBase
)
}
effect,
null,
(__DEV__
- ? Object.assign(options || {}, { flush: 'sync' })
+ ? { ...options, flush: 'sync' }
: { flush: 'sync' }) as WatchOptionsBase
)
}