diff --git a/.eslintrc.json b/.eslintrc.json index bffb357..5b2e990 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -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" + } } diff --git a/bun.lockb b/bun.lockb index 5363e5b..d3273d2 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/next.config.js b/next.config.js index 767719f..8f1c43d 100644 --- a/next.config.js +++ b/next.config.js @@ -1,4 +1,8 @@ /** @type {import('next').NextConfig} */ -const nextConfig = {} +const nextConfig = { + experimental: { + reactCompiler: true, + }, +}; -module.exports = nextConfig +module.exports = nextConfig; diff --git a/package.json b/package.json index 4770d96..6ca6b7e 100644 --- a/package.json +++ b/package.json @@ -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",