chore: change the map to foreach (#278)

This commit is contained in:
bicycleRiding authored and GitHub committed 2022-01-18 18:51:47 +08:00
1 parent 7df00319ea
commit 153a4d877d
1 file changed
+1 -1
+1 -1
View File
@@ -22,6 +22,6 @@ export const createApp = ViteSSG(
{ routes, base: import.meta.env.BASE_URL },
(ctx) => {
// install all modules under `modules/`
Object.values(import.meta.globEager('./modules/*.ts')).map(i => i.install?.(ctx))
Object.values(import.meta.globEager('./modules/*.ts')).forEach(i => i.install?.(ctx))
},
)