Created
April 24, 2015 18:26
-
-
Save BrennanRoberts/e9806ce4e190043ded4b to your computer and use it in GitHub Desktop.
"requirejs(dep)" loads dep twice
This file contains hidden or 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
console.log('loaded "dep"'); |
This file contains hidden or 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
requirejs.config({ | |
nodeRequire: require, | |
baseUrl: '.' | |
}); | |
requirejs('dep'); | |
This file contains hidden or 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
{ | |
"name": "requirejs-node-duplication-sample", | |
"version": "1.0.0", | |
"devDependencies": { | |
"requirejs": "2.1.17" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run
node index.js
and watch "dep" get printed twice.