You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Align default transform profile Babel preset with legacy Hermes - drop "older" engines (#54806)
Summary:
Pull Request resolved: #54806
Align the default transform profile in our Babel preset with the current state of `hermes-stable`, drop non-Hermes, pre-ES6 engines which have been unsupported in core since the JSC removal.
This will allow us to subsequently repurpose transform profiles (`unstable_transformProfile`) to remove transforms unnecessary for Hermes v1 (aka Static Hermes) as follows:
- `hermes-canary` -> Hermes v1 (experimental features)
- `hermes-stable` -> Hermes v1
- Default -> All supported engines (i.e, Hermes v1 and legacy)
Changelog:
[General][Removed] Remove Babel preset transforms for already-unsupported non-Hermes engines
Reviewed By: javache, huntie
Differential Revision: D88269506
fbshipit-source-id: 721d4a6a632d61ad04a10d9fd55c5b249758073a
Copy file name to clipboardExpand all lines: packages/react-native/Libraries/StyleSheet/__tests__/__snapshots__/processAspectRatio-test.js.snap
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ exports[`processAspectRatio should not accept invalid formats 2`] = `"aspectRati
6
6
7
7
exports[`processAspectRatio should not accept invalid formats 3`] =`"aspectRatio must either be a number, a ratio string or \`auto\`. You passed: auto 1/1"`;
8
8
9
-
exports[`processAspectRatio should not accept non string truthy types 1`] =`"aspectRatio must either be a number, a ratio string or \`auto\`. You passed: function (){}"`;
9
+
exports[`processAspectRatio should not accept non string truthy types 1`] =`"aspectRatio must either be a number, a ratio string or \`auto\`. You passed: () =>{}"`;
10
10
11
11
exports[`processAspectRatio should not accept non string truthy types 2`] =`"aspectRatio must either be a number, a ratio string or \`auto\`. You passed: 1,2,3"`;
0 commit comments