forked from garronej/denoify
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix/garronej#108
- Loading branch information
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |