babel-preset-expo 11.0.13 → 11.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +5 -1
- package/package.json +3 -3
package/build/index.js
CHANGED
|
@@ -87,7 +87,11 @@ function babelPresetExpo(api, options = {}) {
|
|
|
87
87
|
// `@react-native/babel-preset` configures this plugin with `{ loose: true }`, which breaks all
|
|
88
88
|
// getters and setters in spread objects. We need to add this plugin ourself without that option.
|
|
89
89
|
// @see https://github.com/expo/expo/pull/11960#issuecomment-887796455
|
|
90
|
-
extraPlugins.push([
|
|
90
|
+
extraPlugins.push([
|
|
91
|
+
require('@babel/plugin-transform-object-rest-spread'),
|
|
92
|
+
// Assume no dependence on getters or evaluation order. See https://github.com/babel/babel/pull/11520
|
|
93
|
+
{ loose: true, useBuiltIns: true },
|
|
94
|
+
]);
|
|
91
95
|
}
|
|
92
96
|
else if (!isServerEnv) {
|
|
93
97
|
// This is added back on hermes to ensure the react-jsx-dev plugin (`@babel/preset-react`) works as expected when
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babel-preset-expo",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.15",
|
|
4
4
|
"description": "The Babel preset for Expo projects",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"files": [
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@babel/preset-typescript": "^7.23.0",
|
|
50
50
|
"@babel/preset-react": "^7.22.15",
|
|
51
51
|
"@react-native/babel-preset": "0.74.87",
|
|
52
|
-
"babel-plugin-react-compiler": "
|
|
52
|
+
"babel-plugin-react-compiler": "0.0.0-experimental-592953e-20240517",
|
|
53
53
|
"babel-plugin-react-native-web": "~0.19.10",
|
|
54
54
|
"react-refresh": "^0.14.2"
|
|
55
55
|
},
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"expo-module-scripts": "^3.3.0",
|
|
59
59
|
"jest": "^29.2.1"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "18f26edfd773f5afc2ea4e127aedae9c22ba1194"
|
|
62
62
|
}
|