babel-preset-expo 11.0.12 → 11.0.14

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.
Files changed (2) hide show
  1. package/build/index.js +5 -1
  2. 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([require('@babel/plugin-transform-object-rest-spread'), { loose: false }]);
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.12",
3
+ "version": "11.0.14",
4
4
  "description": "The Babel preset for Expo projects",
5
5
  "main": "build/index.js",
6
6
  "files": [
@@ -48,7 +48,7 @@
48
48
  "@babel/plugin-transform-parameters": "^7.22.15",
49
49
  "@babel/preset-typescript": "^7.23.0",
50
50
  "@babel/preset-react": "^7.22.15",
51
- "@react-native/babel-preset": "0.74.85",
51
+ "@react-native/babel-preset": "0.74.87",
52
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"
@@ -58,5 +58,5 @@
58
58
  "expo-module-scripts": "^3.3.0",
59
59
  "jest": "^29.2.1"
60
60
  },
61
- "gitHead": "c37efa4f4ebe6137c34eb5813843df7015f3c22f"
61
+ "gitHead": "07bfec459aad07ff4c792d0fd5fdca853a55dbd0"
62
62
  }