feat: switch to react compiler

This commit is contained in:
Paul Makles
2024-08-20 13:55:26 +01:00
parent 9d33c8cc2f
commit e1d15ad3e8
4 changed files with 18 additions and 6 deletions
+7 -1
View File
@@ -1,3 +1,9 @@
{
"extends": "next/core-web-vitals"
"extends": "next/core-web-vitals",
"plugins": [
"eslint-plugin-react-compiler"
],
"rules": {
"react-compiler/react-compiler": "error"
}
}
BIN
View File
Binary file not shown.
+6 -2
View File
@@ -1,4 +1,8 @@
/** @type {import('next').NextConfig} */
const nextConfig = {}
const nextConfig = {
experimental: {
reactCompiler: true,
},
};
module.exports = nextConfig
module.exports = nextConfig;
+5 -3
View File
@@ -18,14 +18,16 @@
"@tensorflow/tfjs-node": "^4.17.0",
"archiver": "^7.0.1",
"archiver-zip-encrypted": "^2.0.0",
"babel-plugin-react-compiler": "^0.0.0-experimental-1f3db3d-20240818",
"dayjs": "^1.11.10",
"eslint-plugin-react-compiler": "experimental",
"lru-cache": "^10.2.0",
"mongodb": "^6.3.0",
"next": "^14.2.5",
"next": "rc",
"next-auth": "^4.24.5",
"node-cron": "^3.0.3",
"react": "^18",
"react-dom": "^18",
"react": "rc",
"react-dom": "rc",
"react-markdown": "^9.0.1",
"redis": "^4.6.13",
"revolt-api": "^0.6.9",