Skip to content

Commit

Permalink
adding support for "browser" field
Browse files Browse the repository at this point in the history
Adding the "browser" field to package.json.
For details, see: https://github.com/defunctzombie/package-browser-field-spec

Useful when one is not using bower to install this package. Atleast webpack seems to pick this up without issue.
Webpack seems to support it - seems like an elegant solution for mixed usage libraries. 

Seems to be a better solution than #27 #27
  • Loading branch information
sramam authored Nov 29, 2016
1 parent 8154cf1 commit 8280727
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
"release": "npm run upgrade && npm test && npm run bump && npm publish",
"start": "npm run watch & http-server -o -c-1"
},
"browser": {
"fs": false
},
"repository": {
"type": "git",
"url": "https://github.com/BigstickCarpet/json-schema-ref-parser.git"
Expand Down Expand Up @@ -69,4 +72,4 @@
"ono": "^2.2.1",
"z-schema": "^3.17.0"
}
}
}

0 comments on commit 8280727

Please sign in to comment.