Skip to content

Commit

Permalink
🚀 try react compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
MammaSonnim committed Jan 9, 2025
1 parent 21431e6 commit 9327cf0
Show file tree
Hide file tree
Showing 4 changed files with 241 additions and 8 deletions.
6 changes: 4 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
"next/core-web-vitals",
"prettier"
],
"plugins": ["react-compiler"],
"rules": {
"@typescript-eslint/restrict-template-expressions": 0,
"@typescript-eslint/unbound-method": 0
"@typescript-eslint/restrict-template-expressions": 0,
"@typescript-eslint/unbound-method": 0,
"react-compiler/react-compiler": "error"
}
}
6 changes: 5 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
/** @type {import('next').NextConfig} */

const nextConfig = {};
const nextConfig = {
experimental: {
reactCompiler: true,
},
};

export default nextConfig;
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@tailwindcss/forms": "^0.5.7",
"@vercel/postgres": "^0.8.0",
"autoprefixer": "10.4.19",
"babel-plugin-react-compiler": "19.0.0-beta-63e3235-20250105",
"bcrypt": "^5.1.1",
"clsx": "^2.1.1",
"next": "15.1.3",
Expand All @@ -42,6 +43,7 @@
"dotenv": "^16.4.5",
"eslint-config-next": "15.1.3",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-react-compiler": "19.0.0-beta-63e3235-20250105",
"husky": "^9.1.1",
"lint-staged": "^15.2.7",
"prettier": "^3.3.3",
Expand Down
Loading

0 comments on commit 9327cf0

Please sign in to comment.