Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: globEager is not a function
Browse files Browse the repository at this point in the history
  • Loading branch information
likui628 committed Dec 27, 2023
1 parent fb915d2 commit cee6f74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/admin/mock/_mock-server.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createProdMockServer } from 'vite-plugin-mock/es/createProdMockServer'

const modules:Recordable<any> = import.meta.globEager('./**/*.ts')
const modules: Recordable<any> = import.meta.glob('./**/*.ts', { eager: true })

const mockModules: any[] = []
Object.keys(modules).forEach((key) => {
Expand Down

0 comments on commit cee6f74

Please sign in to comment.