Skip to content

Commit 52761cf

Browse files
committed
chore(README): Remove section on browserify
This section is no longer needed as browserify will evaluate boolean vars and remove deadcode
1 parent 6101286 commit 52761cf

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ This is a mirror of Facebook's (FB) [warning](https://github.com/facebook/fbjs/b
4444
If you believe a feature is missing than please open a feature request [there](https://github.com/facebook/fbjs).
4545
If it is approved and merged in that this module will be updated to reflect that change, otherwise this module will not change.
4646

47-
## Browserify
48-
49-
When using [browserify](http://browserify.org/), the `browser.js` file will be imported instead of `invariant.js` and browserify will be told to transform the file with [envify](https://github.com/hughsk/envify). The only difference between `browser.js` and `invariant.js` is the `process.env.NODE_ENV` variable isn't cached. This, in combination with envify and (optionally) [uglifyjs](https://github.com/mishoo/UglifyJS), will result in a noop in production environments. Otherwise behavior is as expected.
50-
5147
## Use in Production
5248

5349
It is recommended to add [babel-plugin-dev-expression](https://github.com/4Catalyzer/babel-plugin-dev-expression) with this module to remove warning messages in production.

0 commit comments

Comments
 (0)