chore: migration vite import.meta.glob (#2778)
This commit is contained in:
parent
971238cedb
commit
7b61f267dd
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue