Skip to content

Commit

Permalink
Merge branch 'main' into fix/garronej#108
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej authored Jun 15, 2023
2 parents e3a68ce + 8f20f7e commit d2219de
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/lib/builtins/index.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import * as __dirname from "./__dirname";
import * as __filename from "./__filename";
import * as buffer from "./buffer";
import * as __dirnameBuiltin from "./__dirname";
import * as __filenameBuiltin from "./__filename";
import * as bufferBuiltin from "./buffer";
import * as processBuiltin from "./process";


/**
* 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
*/

const builtins = [__filename, __dirname, buffer, processBuiltin];
const builtins = [__filenameBuiltin, __dirnameBuiltin, bufferBuiltin, processBuiltin];

export default builtins;

0 comments on commit d2219de

Please sign in to comment.