dillon1000/react
Commit
Browse files [compiler][playground] (1/N) Config override panel (#34303)
## Summary Part 1 of adding a "Config Override" panel to the React compiler playground. The panel is placed to the left of the current input section, and supports converting the comment pragmas in the input section to a JavaScript-based config. Backwards sync has not been implemented yet. NOTE: I have added support for a new `OVERRIDE` type pragma to add support for Map and Function types. (For now, the old pragma format is still intact) ## Testing Example of the config overrides synced to the source code: <img width="1542" height="527" alt="Screenshot 2025-08-28 at 3 38 13 PM" src="https://github.com/user-attachments/assets/d46e7660-61b9-4145-93b5-a4005d30064a" />
Changed paths4 files
First-parent comparisoncompiler/apps/playground/components/Editor/ConfigEditor.tsx AddedM compiler/apps/playground/components/Editor/EditorImpl.tsx ModifiedM compiler/packages/babel-plugin-react-compiler/src/Utils/TestUtils.ts ModifiedM compiler/packages/babel-plugin-react-compiler/src/index.ts ModifiedPatch
Files changed
Rendering syntax-highlighted changes…