Skip to content

Commit

Permalink
refactor(shared): update genStaticKeys (#13010)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikoloism committed Apr 27, 2023
1 parent a9ca2d8 commit 49b6bd4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/shared/util.ts
Expand Up @@ -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(',')
}

Expand Down

0 comments on commit 49b6bd4

Please sign in to comment.