babel-preset-expo 13.3.0-canary-20250613-b29d676 → 13.3.0-canary-20250630-547cd82

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 CHANGED
@@ -109,7 +109,9 @@ function babelPresetExpo(api, options = {}) {
109
109
  // This is added back on hermes to ensure the react-jsx-dev plugin (`@babel/preset-react`) works as expected when
110
110
  // JSX is used in a function body. This is technically not required in production, but we
111
111
  // should retain the same behavior since it's hard to debug the differences.
112
- extraPlugins.push(require('@babel/plugin-transform-parameters'));
112
+ extraPlugins.push(require('@babel/plugin-transform-parameters'),
113
+ // Add support for class static blocks.
114
+ [require('@babel/plugin-transform-class-static-block'), { loose: true }]);
113
115
  }
114
116
  const inlines = {
115
117
  'process.env.EXPO_OS': platform,
@@ -17,6 +17,7 @@ const defaultPlugins = [
17
17
  [require('babel-plugin-syntax-hermes-parser'), { parseLangTypes: 'flow' }],
18
18
  //
19
19
  [require('babel-plugin-transform-flow-enums')],
20
+ [require('@babel/plugin-transform-class-static-block'), { loose }],
20
21
  [require('@babel/plugin-transform-private-methods'), { loose }],
21
22
  [require('@babel/plugin-transform-private-property-in-object'), { loose }],
22
23
  [require('@babel/plugin-syntax-export-default-from')],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babel-preset-expo",
3
- "version": "13.3.0-canary-20250613-b29d676",
3
+ "version": "13.3.0-canary-20250630-547cd82",
4
4
  "description": "The Babel preset for Expo projects",
5
5
  "main": "build/index.js",
6
6
  "files": [
@@ -45,6 +45,7 @@
45
45
  "@babel/plugin-proposal-decorators": "^7.12.9",
46
46
  "@babel/plugin-syntax-export-default-from": "^7.24.7",
47
47
  "@babel/plugin-proposal-export-default-from": "^7.24.7",
48
+ "@babel/plugin-transform-class-static-block": "^7.27.1",
48
49
  "@babel/plugin-transform-export-namespace-from": "^7.25.9",
49
50
  "@babel/plugin-transform-flow-strip-types": "^7.25.2",
50
51
  "@babel/plugin-transform-private-methods": "^7.24.7",
@@ -76,7 +77,7 @@
76
77
  "@babel/traverse": "^7.9.0",
77
78
  "@babel/types": "^7.9.0",
78
79
  "babel-plugin-react-compiler": "^19.0.0-beta-e993439-20250405",
79
- "expo-module-scripts": "4.1.8-canary-20250613-b29d676-2",
80
+ "expo-module-scripts": "4.1.9-canary-20250630-547cd82",
80
81
  "jest": "^29.2.1"
81
82
  }
82
83
  }