UNPKG

@lusito/require-libs

Version:

Some libraries to setup require hooks

4 lines (3 loc) 335 B
export type ScopedNameGenerator = (localName: string) => string; export type ScopedNameGeneratorFactory = (code: string, filepath: string) => ScopedNameGenerator; export declare function getScopedNameGenerator(code: string, filepath: string, generateScopedName?: boolean | ScopedNameGeneratorFactory): ScopedNameGenerator | undefined;