Created
May 15, 2013 00:32
-
-
Save amitayd/5580837 to your computer and use it in GitHub Desktop.
Demonstrating a transitive dependency issue with browserify.
It's an augmentation of the multi-bundle example given in browserify docs, with the addition of robot.js requires circuit.js, so the dependency relation is:
beep.js -> robot.js -> circuit.js
and
boop.js -> robot.js -> circuit.js
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
var robot = require('./robot'); | |
console.log(robot('beep')); |
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
var robot = require('./robot'); | |
console.log(robot('boop')); |
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
module.exports = function (s) { return "zzzzbzzb" }; |
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
var circuit = require('./circuit.js'); | |
module.exports = function (s) { return s.toUpperCase() + '!' + circuit()}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment