Permalink
Browse files

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
  • Loading branch information...
1 parent 5a0aa59 commit 8c2bcde42d553871a05f0feeb0208eb943e8f894 @bdadam bdadam committed on GitHub Nov 23, 2016
Showing with 1 addition and 0 deletions.
  1. +1 −0 package.json
View
@@ -26,6 +26,7 @@
"url": "https://github.com/chaijs/chai/issues"
},
"main": "./index",
+ "browser": "./chai.js",
"scripts": {
"test": "make test"
},

0 comments on commit 8c2bcde

Please sign in to comment.