babel-preset-expo 13.3.0-canary-20250612-338ef55 → 13.3.0-canary-20250626-8ab1d87
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 +3 -1
- package/build/web-preset.js +1 -0
- package/package.json +3 -2
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,
|
package/build/web-preset.js
CHANGED
|
@@ -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-
|
|
3
|
+
"version": "13.3.0-canary-20250626-8ab1d87",
|
|
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.
|
|
80
|
+
"expo-module-scripts": "4.1.9-canary-20250626-8ab1d87",
|
|
80
81
|
"jest": "^29.2.1"
|
|
81
82
|
}
|
|
82
83
|
}
|