UNPKG

@digitak/grubber

Version:

Parse code files and patch it without having to use an AST

5 lines (4 loc) 217 B
/** * @param resolve callback that take a module endpoint as entry and the right .js file that is imported */ export default function addJsExtensions(content: string, resolve: (imported: string) => string): string;