UNPKG

@wessberg/cjs-to-esm-transformer

Version:

A Custom Transformer for Typescript that transforms Node-style CommonJS to tree-shakeable ES Modules

18 lines 651 B
interface ResolveOptions { id: string; parent: string | null | undefined; moduleDirectory?: string; prioritizedPackageKeys?: string[]; prioritizedExtensions?: string[]; readFile(fileName: string, encoding?: string): string | undefined; fileExists(fileName: string): boolean; } /** * A function that can resolve an import path * * @param options * @returns */ declare function resolvePath({ id, parent, prioritizedPackageKeys, prioritizedExtensions, moduleDirectory, fileExists, readFile }: ResolveOptions): string | undefined; export { ResolveOptions, resolvePath }; //# sourceMappingURL=resolve-path-df6b3de9.d.ts.map