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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user