-
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.
refactor: script and commonjs presets
- Loading branch information
1 parent
4bf1c4f
commit c5cf28c
Showing
16 changed files
with
304 additions
and
164 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
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
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
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,11 @@ | ||
const subScript = require("./sub-module"); | ||
|
||
function outputSomething(line) { | ||
return line; | ||
} | ||
|
||
outputSomething(subScript); | ||
outputSomething(__filename); | ||
outputSomething(__dirname); | ||
|
||
module.exports = outputSomething; |
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,11 +1,4 @@ | ||
const subScript = require("./sub-module"); | ||
|
||
function outputSomething(line) { | ||
return line; | ||
} | ||
|
||
outputSomething(subScript); | ||
outputSomething(__filename); | ||
outputSomething(__dirname); | ||
|
||
module.exports = outputSomething; | ||
outputSomething("text"); |
Oops, something went wrong.