snowpack
Version:
The ESM-powered frontend build tool. Fast, lightweight, unbundled.
5 lines (4 loc) • 407 B
TypeScript
import { SnowpackSourceFile } from './types';
export declare function scanCodeImportsExports(code: string): Promise<any[]>;
export declare function transformEsmImports(_code: string, replaceImport: (specifier: string) => string): Promise<string>;
export declare function transformFileImports({ baseExt, contents }: SnowpackSourceFile<string>, replaceImport: (specifier: string) => string): Promise<string>;