UNPKG

denoify

Version:

For NPM module authors that would like to support Deno but do not want to write and maintain a port.

11 lines (10 loc) 447 B
import * as __dirnameBuiltin from "./__dirname"; /** * This is how we handle Node builtins * * Each module in this directory should export two functions: * - test: (sourceCode: string) => boolean returns true if the source code needs to be modified because it refers to a Node builtin * - modification: string[] the lines of code to prepend to the source code */ declare const builtins: (typeof __dirnameBuiltin)[]; export default builtins;