UNPKG

@modern-js/utils

Version:

A Progressive React Framework for modern web development.

10 lines (9 loc) 520 B
export declare function compatibleRequire(path: string, interop?: boolean): Promise<any>; export declare function loadFromProject(moduleName: string, appDir: string): Promise<any>; export declare const dynamicImport: Function; export declare const requireExistModule: (filename: string, opt?: { extensions?: string[]; interop?: boolean; }) => Promise<any>; export declare const cleanRequireCache: (filelist: string[]) => void; export declare const tryResolve: (name: string, ...resolvePath: string[]) => string;