mirror of
https://github.com/jekip/naive-ui-admin.git
synced 2026-03-01 00:23:11 +08:00
feat: ImportMeta中globEager已废弃,改为glob('*', { eager: true })
This commit is contained in:
1 parent
aa90e0a468
commit
e9efbb5e67
3 files changed
+3
-3
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import { createProdMockServer } from 'vite-plugin-mock/es/createProdMockServer';
|
||||
|
||||
const modules = import.meta.globEager('./**/*.ts');
|
||||
const modules = import.meta.glob('./**/*.ts', { eager: true });
|
||||
|
||||
const mockModules: any[] = [];
|
||||
Object.keys(modules).forEach((key) => {
|
||||
|
||||
Reference in new issue
Block a user