unplugin-isolated-decl
Version:
A blazing-fast tool for generating isolated declarations.
9 lines (8 loc) • 557 B
TypeScript
import type * as OxcTypes from "@oxc-project/types";
import type MagicString from "magic-string";
export type OxcImport = (OxcTypes.ImportDeclaration | OxcTypes.ExportAllDeclaration | OxcTypes.ExportNamedDeclaration) & {
source: OxcTypes.StringLiteral
shouldAddIndex?: boolean
};
export declare function filterImports(program: OxcTypes.Program): OxcImport[];
export declare function rewriteImports(s: MagicString, imports: OxcImport[], entryMap: Record<string, string> | undefined, inputBase: string, entryFileNames: string, srcFilename: string): string;