Skip to content

Commit 2587326

Browse files
Add the browser field in package.json as a hint to bundlers
The `browser` field in `package.json` will tell JavaScript bundlers like browserify and webpack to package, replace, or ignore specified modules for the client-side. https://github.com/defunctzombie/package-browser-field-spec
1 parent e7ee263 commit 2587326

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,9 @@
2727
"peerDependencies": {
2828
"react": "^0.13 || ^15.0"
2929
},
30+
"browser": {
31+
"htmlparser2/lib/Parser": false,
32+
"domhandler": false
33+
},
3034
"license": "MIT"
3135
}

0 commit comments

Comments
 (0)