Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3520191
D13748.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D13748.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 11:35 PM (17 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2697370
Default Alt Text
D13748.diff (1 KB)
Attached To
Mode
D13748: [native] Fix Babel preset patch after React Native 0.70.15 upgrade
Attached
Detach File
Event Timeline
Log In to Comment