UNPKG

react-imported-component

Version:
15 lines (14 loc) 741 B
import { ImportedConfiguration } from '../configuration/configuration'; interface MappedImport { name: string; comment: string; } interface FileContent { file: string; content: string; } export declare const getDynamicImports: (str: string) => MappedImport[]; export declare const cleanFileContent: (content: string) => string; export declare const remapImports: (data: FileContent[], root: string, targetDir: string, getRelativeName: (a: string, b: string) => string, imports: Record<string, string>, testImport: NonNullable<ImportedConfiguration['testImport']>, chunkName?: ImportedConfiguration['chunkName']) => void; export declare function scanTop(root: string, start: string, target: string): Promise<void>; export {};