babel-preset-expo 13.2.2 → 13.3.0-canary-20250611-f0afe80

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/README.md CHANGED
@@ -53,6 +53,10 @@ Defaults to `true` for server environments, and `false` for client environments
53
53
 
54
54
  `boolean`, defaults to `true`. Set `reanimated: false` to disable adding the `react-native-reanimated/plugin` when `react-native-reanimated` is installed.
55
55
 
56
+ ### `worklets`
57
+
58
+ `boolean`, `boolean`, defaults to `true`. Set `worklets: false` to disable adding the `react-native-worklets/plugin` when `react-native-worklets` is installed. Applies only when using standalone `react-native-worklets` or `react-native-reanimated 4`.
59
+
56
60
  ### [`jsxRuntime`](https://babeljs.io/docs/en/babel-plugin-transform-react-jsx#runtime)
57
61
 
58
62
  `classic | automatic`, defaults to `automatic`
package/build/index.d.ts CHANGED
@@ -7,6 +7,10 @@ type BabelPresetExpoPlatformOptions = {
7
7
  };
8
8
  /** Enable or disable adding the Reanimated plugin by default. @default `true` */
9
9
  reanimated?: boolean;
10
+ /** Enable or disable adding the Worklets plugin by default. Only applies when
11
+ * using `react-native-worklets` or Reanimated 4. @default `true`
12
+ */
13
+ worklets?: boolean;
10
14
  /** @deprecated Set `jsxRuntime: 'classic'` to disable automatic JSX handling. */
11
15
  useTransformReactJSXExperimental?: boolean;
12
16
  /** Change the policy for handling JSX in a file. Passed to `plugin-transform-react-jsx`. @default `'automatic'` */
package/build/index.js CHANGED
@@ -279,8 +279,12 @@ function babelPresetExpo(api, options = {}) {
279
279
  ],
280
280
  // Automatically add `react-native-reanimated/plugin` when the package is installed.
281
281
  // TODO: Move to be a customTransformOption.
282
- (0, common_1.hasModule)('react-native-reanimated') &&
283
- platformOptions.reanimated !== false && [require('react-native-reanimated/plugin')],
282
+ (0, common_1.hasModule)('react-native-worklets') &&
283
+ platformOptions.worklets !== false &&
284
+ platformOptions.reanimated !== false
285
+ ? [require('react-native-worklets/plugin')]
286
+ : (0, common_1.hasModule)('react-native-reanimated') &&
287
+ platformOptions.reanimated !== false && [require('react-native-reanimated/plugin')],
284
288
  ].filter(Boolean),
285
289
  };
286
290
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babel-preset-expo",
3
- "version": "13.2.2",
3
+ "version": "13.3.0-canary-20250611-f0afe80",
4
4
  "description": "The Babel preset for Expo projects",
5
5
  "main": "build/index.js",
6
6
  "files": [
@@ -55,7 +55,7 @@
55
55
  "@babel/plugin-transform-parameters": "^7.24.7",
56
56
  "@babel/preset-react": "^7.22.15",
57
57
  "@babel/preset-typescript": "^7.23.0",
58
- "@react-native/babel-preset": "0.79.5",
58
+ "@react-native/babel-preset": "0.80.0-rc.5",
59
59
  "babel-plugin-react-native-web": "~0.19.13",
60
60
  "babel-plugin-transform-flow-enums": "^0.0.2",
61
61
  "babel-plugin-syntax-hermes-parser": "^0.25.1",
@@ -76,8 +76,7 @@
76
76
  "@babel/traverse": "^7.9.0",
77
77
  "@babel/types": "^7.9.0",
78
78
  "babel-plugin-react-compiler": "^19.0.0-beta-e993439-20250405",
79
- "expo-module-scripts": "^4.1.8",
79
+ "expo-module-scripts": "4.1.8-canary-20250611-f0afe80",
80
80
  "jest": "^29.2.1"
81
- },
82
- "gitHead": "d0d8a3fb9633f94037dd6d96e673e0698ab8b6e0"
81
+ }
83
82
  }