Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

chore: migration vite import.meta.glob (#2778)

Hau Nguyen7b61f267dd05
diff --git a/packages/hoppscotch-app/src/modules/index.ts b/packages/hoppscotch-app/src/modules/index.ts
index e82e3e62c..f4ec9d65c 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)
)