Reference

hasTopLevelExportDeclaration

Checks whether a module declares any of the given names as top-level exports.

Signature

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