Permalink
Browse files

Fix Unexpected token ) in babel-preset-react-native

Summary:
Fixes #15513

cc jeanlauliac
Closes #15517

Differential Revision: D5644626

Pulled By: TheSavior

fbshipit-source-id: f90b35c29a1e7cd5a829ae44237deb050f9a29e2
  • Loading branch information...
charpeni authored and facebook-github-bot committed Aug 16, 2017
1 parent dc61f10 commit f69638b56ff881ba687ec1c98ab3aebee6209a26
Showing with 1 addition and 2 deletions.
  1. +1 −2 babel-preset/configs/main.js
@@ -6,7 +6,6 @@
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
*/
'use strict';
@@ -37,7 +36,7 @@ const getPreset = (src, options) => {
[
'transform-es2015-modules-commonjs',
{strict: false, allowTopLevelThis: true},
],
]
);
if (isNull || src.indexOf('async') !== -1 || src.indexOf('await') !== -1) {

0 comments on commit f69638b

Please sign in to comment.