We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
genStaticKeys
1 parent a9ca2d8 commit 49b6bd4Copy full SHA for 49b6bd4
src/shared/util.ts
@@ -286,9 +286,7 @@ export function genStaticKeys(
286
modules: Array<{ staticKeys?: string[] } /* ModuleOptions */>
287
): string {
288
return modules
289
- .reduce((keys, m) => {
290
- return keys.concat(m.staticKeys || [])
291
- }, [] as string[])
+ .reduce<string[]>((keys, m) => keys.concat(m.staticKeys || []), [])
292
.join(',')
293
}
294
0 commit comments