Skip to content

Commit

Permalink
refactor(shared): update genStaticKeys (#13010)
Browse files Browse the repository at this point in the history
  • Loading branch information
Antontokarchuk0302 committed Apr 27, 2023
1 parent 84d91e9 commit 9f93c1a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/shared/util.ts
Original file line number Diff line number Diff line change
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 9f93c1a

Please sign in to comment.