Skip to content
This repository was archived by the owner on Feb 25, 2020. It is now read-only.

Commit 313774a

Browse files
committed
Avoid __DEV__ check for web consumers
1 parent 24e8335 commit 313774a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/invariant.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
var validateFormat = function() {};
1515

16-
if (__DEV__) {
16+
if (process.env !== 'production') {
1717
validateFormat = function(format) {
1818
if (format === undefined) {
1919
throw new Error('invariant requires an error message argument');

0 commit comments

Comments
 (0)