Commit 33cda31
feat(test): enable React Compiler in vitest (#2711)
* feat(test): enable React Compiler in vitest
Run `babel-plugin-react-compiler` through `@rolldown/plugin-babel` +
`reactCompilerPreset` so the memoize behavior in unit tests matches
production (Next.js). Keeps hooks and components free of manual
`useCallback` / `useMemo` while still catching regressions in tests.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
* fix: lock file
---------
Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>1 parent e87be62 commit 33cda31
3 files changed
Lines changed: 185 additions & 109 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
| 51 | + | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
| |||
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| 62 | + | |
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
| |||
0 commit comments