Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b71ec81
commit 4a9bcc0
Showing
2 changed files
with
18 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/node_modules/bytenode/lib/index.js b/node_modules/bytenode/lib/index.js | ||
index cdd98cc..cc6b8fa 100644 | ||
--- a/node_modules/bytenode/lib/index.js | ||
+++ b/node_modules/bytenode/lib/index.js | ||
@@ -327,10 +327,7 @@ const addLoaderFile = function (fileToLoad, loaderFilename) { | ||
}; | ||
|
||
const loaderCode = function (targetPath) { | ||
- return ` | ||
- require('bytenode'); | ||
- require('${targetPath}'); | ||
- `; | ||
+ return `require('bytenode');require('${targetPath}');`; | ||
}; | ||
|
||
global.bytenode = { |
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