Skip to content
Permalink
Browse files

Used loose mode for optional chaining to generate a smaller output

Differential Revision: D8787122

fbshipit-source-id: b4a1f7936da7a60db8c68ae2295a3dd37fa6e9c5
  • Loading branch information...
rubennorte authored and facebook-github-bot committed Jul 11, 2018
1 parent 0321098 commit b629e9609374f68677771c0759c355e99a7662cb
Showing with 4 additions and 1 deletion.
  1. +4 −1 packages/metro-react-native-babel-preset/src/configs/main.js
@@ -59,7 +59,10 @@ const nullishCoalescingOperator = [
require('@babel/plugin-proposal-nullish-coalescing-operator'),
{loose: true},
];
const optionalChaining = [require('@babel/plugin-proposal-optional-chaining')];
const optionalChaining = [
require('@babel/plugin-proposal-optional-chaining'),
{loose: true},
];
const reactDisplayName = [
require('@babel/plugin-transform-react-display-name'),
];

0 comments on commit b629e96

Please sign in to comment.
You can’t perform that action at this time.