chore: change the map to foreach (#278)

This commit is contained in:
bicycleRiding 2022-01-18 18:51:47 +08:00 committed by GitHub
parent 7df00319ea
commit 153a4d877d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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))
},
)