dillon1000/react

Commit

[compiler] Playground qol: shared compilation option directives with tests (#32012)

- Adds @compilationMode(all|infer|syntax|annotation) and
@panicMode(none) directives. This is now shared with our test infra
- Playground still defaults to `infer` mode while tests default to `all`
mode
- See added fixture tests
Browse files
Changed paths7 files
First-parent comparison
A compiler/apps/playground/__tests__/e2e/__snapshots__/page.spec.ts/compilationMode-all-output.txt AddedA compiler/apps/playground/__tests__/e2e/__snapshots__/page.spec.ts/compilationMode-infer-output.txt AddedM compiler/apps/playground/__tests__/e2e/page.spec.ts ModifiedM compiler/apps/playground/components/Editor/EditorImpl.tsx ModifiedM compiler/packages/babel-plugin-react-compiler/src/HIR/Environment.ts ModifiedM compiler/packages/babel-plugin-react-compiler/src/__tests__/parseConfigPragma-test.ts ModifiedM compiler/packages/snap/src/compiler.ts Modified
Patch

Files changed

Rendering syntax-highlighted changes…