Reference

stripTopLevelExportDeclarations

Removes top-level export declarations for selected names while preserving their values where possible.

Signature

function stripTopLevelExportDeclarations(input: { code: string; filename?: string; names: readonly string[] }): string