From 153a4d877d22c3cd0d178384d427d1aef688f6d8 Mon Sep 17 00:00:00 2001 From: bicycleRiding <68490919+bicycleRiding@users.noreply.github.com> Date: Tue, 18 Jan 2022 18:51:47 +0800 Subject: [PATCH] chore: change the map to foreach (#278) --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 0ebb1d9..8fc9c5d 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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)) }, )