Provided browser field in package.json

Some tools use the browser field in the package.json to use an alternate main file. This is e.g. the case for rollup-plugin-node-resolve (https://github.com/rollup/rollup-plugin-node-resolve).
Specs: https://github.com/defunctzombie/package-browser-field-spec#alternate-main---basic
This commit is contained in:
Adam Beres-Deak 2016-11-23 18:11:52 +01:00 committed by GitHub
parent 5a0aa5984e
commit 8c2bcde42d

View file

@ -26,6 +26,7 @@
"url": "https://github.com/chaijs/chai/issues" "url": "https://github.com/chaijs/chai/issues"
}, },
"main": "./index", "main": "./index",
"browser": "./chai.js",
"scripts": { "scripts": {
"test": "make test" "test": "make test"
}, },