Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

sleungcy commented Mar 11, 2016

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

@sleungcy

This comment has been minimized.

Copy link
Owner Author

sleungcy commented Mar 12, 2016

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
You can’t perform that action at this time.