-
-
Save Bockit/7208712 to your computer and use it in GitHub Desktop.
If two files have the same contents browserify is aliasing one file to the other file, which causes some function equality issues. This is my isolated example.
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() { | |
console.log('I am a function'); | |
} |
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() { | |
console.log('I am a function'); | |
} |
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
<html> | |
<body> | |
<script src="browserified.js"></script> | |
</body> | |
</html> |
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 a = require('./a') | |
var b = require('./b') | |
console.log('a == b (expect false)', a == b); | |
console.log('a === b (expect false)', a === b); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment