mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Add babel-plugin-transform-exponentiation-operator to babel-preset-react-native
Summary: Adds the dependency to the Babel preset's package.json and enables the plugin only when `**` exists in a source file. This is https://github.com/facebook/react-native/pull/12339 with merge conflicts resolved and putting the plugin behind a cheaper heuristic. Closes https://github.com/facebook/react-native/pull/16191 Differential Revision: D6023857 Pulled By: hramos fbshipit-source-id: 16f4a5f14780c27d2ef95fa7e8d8b611fa992aa0
This commit is contained in:
committed by
Facebook Github Bot
parent
63848bdde5
commit
30b057fa9c
@@ -142,6 +142,7 @@
|
||||
"babel-plugin-syntax-trailing-function-commas": "^6.20.0",
|
||||
"babel-plugin-transform-async-to-generator": "6.16.0",
|
||||
"babel-plugin-transform-class-properties": "^6.18.0",
|
||||
"babel-plugin-transform-exponentiation-operator": "^6.5.0",
|
||||
"babel-plugin-transform-flow-strip-types": "^6.21.0",
|
||||
"babel-plugin-transform-object-rest-spread": "^6.20.2",
|
||||
"babel-register": "^6.24.1",
|
||||
|
||||
Reference in New Issue
Block a user