Page MenuHomePhabricator

D13748.id45270.diff
No OneTemporary

D13748.id45270.diff

diff --git a/patches/metro-react-native-babel-transformer++metro-react-native-babel-preset+0.72.4.patch b/patches/metro-react-native-babel-transformer++metro-react-native-babel-preset+0.72.4.patch
new file mode 100644
--- /dev/null
+++ b/patches/metro-react-native-babel-transformer++metro-react-native-babel-preset+0.72.4.patch
@@ -0,0 +1,17 @@
+diff --git a/node_modules/metro-react-native-babel-transformer/node_modules/metro-react-native-babel-preset/src/configs/main.js b/node_modules/metro-react-native-babel-transformer/node_modules/metro-react-native-babel-preset/src/configs/main.js
+index 7ffbc92..912903d 100644
+--- a/node_modules/metro-react-native-babel-transformer/node_modules/metro-react-native-babel-preset/src/configs/main.js
++++ b/node_modules/metro-react-native-babel-transformer/node_modules/metro-react-native-babel-preset/src/configs/main.js
+@@ -136,12 +136,6 @@ const getPreset = (src, options) => {
+ extraPlugins.push([require("@babel/plugin-transform-async-to-generator")]);
+ }
+
+- if (!isHermes && (isNull || src.indexOf("**") !== -1)) {
+- extraPlugins.push([
+- require("@babel/plugin-transform-exponentiation-operator"),
+- ]);
+- }
+-
+ if (
+ isNull ||
+ src.indexOf("React.createClass") !== -1 ||

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 24, 5:56 AM (20 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2697370
Default Alt Text
D13748.id45270.diff (1 KB)

Event Timeline