🌲 Separate flag for jsx compilation
Per discussion w @pieterv we'd like to have a mode where we compile JSX separately, so splitting this flag into two variants.
Joe Savona committed
Dec 11, 2023 at 11:34 UTC
1b5ef83b783530ac7ccafea0208921080cd2f2d6
2 files changed
+3
compiler/packages/babel-plugin-react-forget/src/HIR/Environment.ts
+2
@@ -104,6 +104,8 @@ const EnvironmentConfigSchema = z.object({
104
105
// 🌲
106
enableForest: z.boolean().default(false),
107
+ // <🌲>
108
+ enableForestJsx: z.boolean().default(false),
109
110
/*
111
* Enable memoization of JSX elements in addition to other types of values. When disabled,
compiler/packages/sprout/src/SproutTodoFilter.ts
+1
@@ -423,6 +423,7 @@ const skipFilter = new Set([
423
424
// TODO: 🌲
425
"forest-basic",
426
+ "forest-basic-jsx",
427
428
// TODO: we probably want to always skip these
429
"rules-of-hooks/rules-of-hooks-0592bd574811",