From 7b61f267dd05ce21ce769891449385ccf1ec88d3 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Wed, 12 Oct 2022 16:44:43 +0700 Subject: [PATCH] chore: migration vite import.meta.glob (#2778) --- packages/hoppscotch-app/src/modules/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hoppscotch-app/src/modules/index.ts b/packages/hoppscotch-app/src/modules/index.ts index e82e3e62..f4ec9d65 100644 --- a/packages/hoppscotch-app/src/modules/index.ts +++ b/packages/hoppscotch-app/src/modules/index.ts @@ -46,7 +46,7 @@ export type HoppModule = { * All the modules Hoppscotch loads into the app */ export const HOPP_MODULES = pipe( - import.meta.globEager("@modules/*.ts"), + import.meta.glob("@modules/*.ts", { eager: true }), Object.values, A.map(({ default: defaultVal }) => defaultVal as HoppModule) )