-
-
Save joakin/f17b475777aa9d59fce3589a7e3f613f to your computer and use it in GitHub Desktop.
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
var b = require('./b') | |
module.exports = function () { | |
return b(1) | |
} |
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
module.exports = function (i) { | |
return i + 2 | |
} |
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
[{ | |
"id": "/Users/jhernandez/dev/tests/browserify-playground/b.js", | |
"source": "module.exports = function (i) {\n return i + 2\n}\n", | |
"deps": | |
{}, | |
"file": "/Users/jhernandez/dev/tests/browserify-playground/b.js" | |
}, | |
{ | |
"id": "/Users/jhernandez/dev/tests/browserify-playground/a.js", | |
"source": "var b = require('./b')\n\nmodule.exports = function () {\n return b(1)\n}\n", | |
"deps": | |
{ | |
"./b": "/Users/jhernandez/dev/tests/browserify-playground/b.js" | |
}, | |
"file": "/Users/jhernandez/dev/tests/browserify-playground/a.js" | |
}, | |
{ | |
"file": "/Users/jhernandez/dev/tests/browserify-playground/index.js", | |
"id": "/Users/jhernandez/dev/tests/browserify-playground/index.js", | |
"source": "var a = require('./a')\nvar b = require('./b')\n", | |
"deps": | |
{ | |
"./b": "/Users/jhernandez/dev/tests/browserify-playground/b.js", | |
"./a": "/Users/jhernandez/dev/tests/browserify-playground/a.js" | |
}, | |
"entry": true | |
}] |
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
npm install browserify | |
module-deps index.js |
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
var a = require('./a') | |
var b = require('./b') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment