refactor: remove use of Object.assign

TS already transpiles spread to Object.assign with target:es2016
This commit is contained in:
Evan You
2022-04-12 15:22:11 +08:00
parent d121a9bc7e
commit 7efb9dba30
3 changed files with 6 additions and 11 deletions

View File

@@ -179,7 +179,6 @@ export function createAppAPI<HostElement>(
hydrate?: RootHydrateFunction
): CreateAppFunction<HostElement> {
return function createApp(rootComponent, rootProps = null) {
if (!isFunction(rootComponent)) {
rootComponent = { ...rootComponent }
}