Skip to content

Instantly share code, notes, and snippets.

@sleungcy
Created March 11, 2016 23:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sleungcy/2772fd8b6f704ad2d322 to your computer and use it in GitHub Desktop.
Save sleungcy/2772fd8b6f704ad2d322 to your computer and use it in GitHub Desktop.
multiple module.exports chained together?
....
};
exports.shr64_lo = shr64_lo;
},{"inherits":"/mnt/talemetry_apply/node_modules/browserify/node_modules/inherits/inherits_browser.js"}],"/mnt/talemetry_apply/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-sign/node_modules/elliptic/package.json":[function(require,module,exports){
module.exports=module.exports=module.exports={
"name": "elliptic",
"version": "6.2.3",
"description": "EC cryptography",
"main": "lib/elliptic.js",
"files": [
"lib"
],
"scripts": {
"coverage": "npm run unit --coverage",
"coveralls": "npm run coverage && cat ./coverage/lcov.info | coveralls",
"jscs": "jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/*.js",
"jshint": "jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/*.js",
"lint": "npm run jscs && npm run jshint",
"test": "npm run lint && npm run unit",
"unit": "istanbul test _mocha --reporter=spec test/*-test.js"
},
"repository": {
....
@sleungcy
Copy link
Author

why is it doing
module.exports=module.exports=module.exports={

@sleungcy
Copy link
Author

found out whats wrong, I was using browserify-inc and it seems to have hiccups when dealing with .json files

https://gist.github.com/sleungcy/c8b2b27c22df334c41eb
jsdf/browserify-incremental#29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment