- Invalid use of destructuring

Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/20178

Differential Revision: D8860733

Pulled By: TheSavior

fbshipit-source-id: ec4aa3050755652106dec9ea245394314c862e97
This commit is contained in:
Umair Ansari 2018-07-16 10:59:58 -07:00 committed by Facebook Github Bot
parent e9e20e6c83
commit 9d5bd50737
1 changed files with 6 additions and 4 deletions

View File

@ -41,10 +41,12 @@ module.exports = {
// node specific transforms only
return babelTransformSync(
src,
Object.assign(
{filename: file},
{sourceType: 'script', ...nodeOptions, ast: false},
),
{
filename: file,
sourceType: 'script',
...nodeOptions,
ast: false
},
).code;
}