Fix Unexpected token ) in babel-preset-react-native
Summary: Fixes #15513 cc jeanlauliac Closes https://github.com/facebook/react-native/pull/15517 Differential Revision: D5644626 Pulled By: TheSavior fbshipit-source-id: f90b35c29a1e7cd5a829ae44237deb050f9a29e2
This commit is contained in:
parent
dc61f10e8b
commit
f69638b56f
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue