chore: enable React Compiler in Next.js configuration

This commit is contained in:
hamster1963 2025-02-02 21:33:48 +08:00
parent 9731eeb530
commit c520d415e8
3 changed files with 2 additions and 0 deletions

BIN
bun.lockb

Binary file not shown.

View File

@ -23,6 +23,7 @@ const withPWA = withPWAInit({
const nextConfig = { const nextConfig = {
experimental: { experimental: {
inlineCss: true, inlineCss: true,
reactCompiler: true,
serverActions: { serverActions: {
allowedOrigins: ["*"], allowedOrigins: ["*"],
}, },

View File

@ -29,6 +29,7 @@
"@trivago/prettier-plugin-sort-imports": "^5.2.2", "@trivago/prettier-plugin-sort-imports": "^5.2.2",
"@types/d3-geo": "^3.1.0", "@types/d3-geo": "^3.1.0",
"@types/luxon": "^3.4.2", "@types/luxon": "^3.4.2",
"babel-plugin-react-compiler": "^19.0.0-beta-27714ef-20250124",
"caniuse-lite": "^1.0.30001696", "caniuse-lite": "^1.0.30001696",
"class-variance-authority": "^0.7.1", "class-variance-authority": "^0.7.1",
"clsx": "^2.1.1", "clsx": "^2.1.1",