mirror of
https://gitee.com/vuejs/vue.git
synced 2024-11-29 18:47:39 +08:00
refactor(shared): update genStaticKeys
(#13010)
This commit is contained in:
parent
a9ca2d8519
commit
49b6bd4264
@ -286,9 +286,7 @@ export function genStaticKeys(
|
||||
modules: Array<{ staticKeys?: string[] } /* ModuleOptions */>
|
||||
): string {
|
||||
return modules
|
||||
.reduce((keys, m) => {
|
||||
return keys.concat(m.staticKeys || [])
|
||||
}, [] as string[])
|
||||
.reduce<string[]>((keys, m) => keys.concat(m.staticKeys || []), [])
|
||||
.join(',')
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user