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

This commit is contained in:
Hau Nguyen
2022-10-12 16:44:43 +07:00
committed by GitHub
parent 971238cedb
commit 7b61f267dd

View File

@@ -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)
)