chore(web): add React compiler and scan workflow #210

Merged
barrettruth merged 1 commit from chore/react-compiler-scan into main 2026-04-07 03:08:47 +00:00
barrettruth commented 2026-04-07 03:00:31 +00:00

Summary

  • add babel-plugin-react-compiler and react-scan to the web app dev stack
  • default Next's React Compiler integration to annotation mode, with DELTA_REACT_COMPILER_MODE=infer available for broad validation runs
  • add dev-only React Scan wiring and scripts so render behavior can be inspected without enabling scan in normal development
  • split the app layout into a shell so React Scan can stay the first import in app/layout.tsx while keeping Biome import ordering clean

Test plan

  • pnpm --dir /home/barrett/dev/delta-react-compiler typecheck
  • pnpm --dir /home/barrett/dev/delta-react-compiler test
  • nix develop /home/barrett/dev/delta-react-compiler -c biome check /home/barrett/dev/delta-react-compiler/next.config.ts /home/barrett/dev/delta-react-compiler/src/app/layout.tsx /home/barrett/dev/delta-react-compiler/src/app/layout-shell.tsx /home/barrett/dev/delta-react-compiler/src/components/react-scan.tsx /home/barrett/dev/delta-react-compiler/src/lib/react-client.ts /home/barrett/dev/delta-react-compiler/package.json
  • nix develop /home/barrett/dev/delta-react-compiler -c pnpm --dir /home/barrett/dev/delta-react-compiler build
  • nix develop /home/barrett/dev/delta-react-compiler -c env DELTA_REACT_COMPILER_MODE=infer pnpm --dir /home/barrett/dev/delta-react-compiler build
## Summary - add `babel-plugin-react-compiler` and `react-scan` to the web app dev stack - default Next's React Compiler integration to `annotation` mode, with `DELTA_REACT_COMPILER_MODE=infer` available for broad validation runs - add dev-only React Scan wiring and scripts so render behavior can be inspected without enabling scan in normal development - split the app layout into a shell so React Scan can stay the first import in `app/layout.tsx` while keeping Biome import ordering clean #### Test plan - [x] `pnpm --dir /home/barrett/dev/delta-react-compiler typecheck` - [x] `pnpm --dir /home/barrett/dev/delta-react-compiler test` - [x] `nix develop /home/barrett/dev/delta-react-compiler -c biome check /home/barrett/dev/delta-react-compiler/next.config.ts /home/barrett/dev/delta-react-compiler/src/app/layout.tsx /home/barrett/dev/delta-react-compiler/src/app/layout-shell.tsx /home/barrett/dev/delta-react-compiler/src/components/react-scan.tsx /home/barrett/dev/delta-react-compiler/src/lib/react-client.ts /home/barrett/dev/delta-react-compiler/package.json` - [x] `nix develop /home/barrett/dev/delta-react-compiler -c pnpm --dir /home/barrett/dev/delta-react-compiler build` - [x] `nix develop /home/barrett/dev/delta-react-compiler -c env DELTA_REACT_COMPILER_MODE=infer pnpm --dir /home/barrett/dev/delta-react-compiler build`
Sign in to join this conversation.
No description provided.