Skip to content

Commit

Permalink
Fix Unexpected token ) in babel-preset-react-native
Browse files Browse the repository at this point in the history
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 f69638b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions babel-preset/configs/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit f69638b

Please sign in to comment.