UNPKG

sucrase

Version:

Super-fast alternative to Babel for when you can target modern JS runtimes

10 lines (9 loc) 426 B
import TokenProcessor from "../TokenProcessor"; /** * Special case code to scan for imported names in ESM TypeScript. We need to do this so we can * properly get globals so we can compute shadowed globals. * * This is similar to logic in CJSImportProcessor, but trimmed down to avoid logic with CJS * replacement and flow type imports. */ export default function getTSImportedNames(tokens: TokenProcessor): Set<string>;