Skip to content

Commit 8280727

Browse files
authored
adding support for "browser" field
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
1 parent 8154cf1 commit 8280727

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333
"release": "npm run upgrade && npm test && npm run bump && npm publish",
3434
"start": "npm run watch & http-server -o -c-1"
3535
},
36+
"browser": {
37+
"fs": false
38+
},
3639
"repository": {
3740
"type": "git",
3841
"url": "https://github.com/BigstickCarpet/json-schema-ref-parser.git"
@@ -69,4 +72,4 @@
6972
"ono": "^2.2.1",
7073
"z-schema": "^3.17.0"
7174
}
72-
}
75+
}

0 commit comments

Comments
 (0)