Skip to content

Commit 517abba

Browse files
davidaureliofacebook-github-bot
authored andcommitted
Require fbjs/lib/invariant instead of invariant
Summary: `'invariant'` can only be resolved by chance if node modules have been installed with npm3 or yarn, as it is a transitive dependency of `babel-traverse`. This changes the import to the direct dependency `fbjs/lib/invariant`. Reviewed By: jeanlauliac, astreet Differential Revision: D4462471 fbshipit-source-id: 5c841845012ed22a7c6264d46326a47807948513
1 parent 25fba55 commit 517abba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Libraries/Components/View/View.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const ReactNativeViewAttributes = require('ReactNativeViewAttributes');
2121
const StyleSheetPropType = require('StyleSheetPropType');
2222
const ViewStylePropTypes = require('ViewStylePropTypes');
2323

24-
const invariant = require('invariant');
24+
const invariant = require('fbjs/lib/invariant');
2525

2626
var TVViewPropTypes = {};
2727
if (Platform.isTVOS) {

0 commit comments

Comments
 (0)