Commit f654168
Disable JS class transforms for Hermes V1 (use SH-native class support) (#55039)
Summary:
Pull Request resolved: #55039
When `unstable_transformProfile` (either the preset option or via `caller` from Metro) is set to `'hermes-stable'` or `'hermes-canary'`, infer that the target engine is Hermes V1.
For Hermes V1, we don't need to transform `class` syntax any more - this has been proven in production experiments.
This should improve the performance of class-intensive APIs, like `Animated`, reduce bundle size, and improve bundling times.
Changelog: [Internal] Disable JS class transform behind unstable_transformProfile=hermes-stable
Reviewed By: javache, huntie
Differential Revision: D89724839
fbshipit-source-id: c25d0080ddac19cc5a746b8d423e091a05df88a31 parent 4bd62a1 commit f654168
1 file changed
+12
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | 23 | | |
28 | 24 | | |
29 | 25 | | |
| |||
54 | 50 | | |
55 | 51 | | |
56 | 52 | | |
57 | | - | |
58 | | - | |
59 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
60 | 59 | | |
61 | 60 | | |
62 | | - | |
| 61 | + | |
63 | 62 | | |
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
67 | | - | |
| 66 | + | |
68 | 67 | | |
69 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | 75 | | |
77 | 76 | | |
78 | 77 | | |
| |||
0 commit comments