feat: Enable React Compiler for automatic memoization

- Install babel-plugin-react-compiler@1.0.0
- Add reactCompiler: true to next.config.mjs
- React 19 compiler will auto-optimize useMemo/useCallback
This commit is contained in:
2026-01-19 22:47:01 +01:00
parent 096daffb3e
commit 004698b604
3 changed files with 19 additions and 5 deletions

View File

@@ -52,6 +52,7 @@
"@types/react-dom": "^19.0.0",
"@types/uuid": "^10.0.0",
"@vitejs/plugin-react": "^5.1.2",
"babel-plugin-react-compiler": "^1.0.0",
"eslint": "^8",
"eslint-config-next": "16.1.0",
"eslint-plugin-security": "^2.1.1",