Skip to content
This repository has been archived by the owner on Jan 25, 2025. It is now read-only.

Commit

Permalink
react-compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
crow-fox committed May 17, 2024
1 parent 5292e1c commit 00f90f9
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 10 deletions.
Binary file modified bun.lockb
Binary file not shown.
3 changes: 3 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: "export",
experimental: {
reactCompiler: true,
},
};

export default nextConfig;
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,17 @@
"start": "serve out/",
"lint:es": "next lint",
"lint:markup": "markuplint 'app/**/*.tsx'",
"lint": "bun run lint:es && bun run lint:markup",
"format": "prettier --write ."
"lint": "bun run lint:es && bun run lint:markup && bun run lint:react",
"format": "prettier --write .",
"lint:react": "bunx react-compiler-healthcheck"
},
"dependencies": {
"babel-plugin-react-compiler": "^0.0.0-experimental-c23de8d-20240515",
"colorjs.io": "^0.5.0",
"next": "14.2.2",
"next": "^14.3.0-canary.68",
"next-themes": "^0.3.0",
"react": "^18",
"react-dom": "^18",
"react": "^19.0.0-rc-915b914b3a-20240515",
"react-dom": "^19.0.0-rc-915b914b3a-20240515",
"serve": "^14.2.2",
"server-only": "^0.0.1",
"valibot": "^0.30.0"
Expand Down
24 changes: 19 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"compilerOptions": {
"lib": ["dom", "dom.iterable", "esnext"],
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
Expand All @@ -18,9 +22,19 @@
}
],
"paths": {
"@/*": ["./*"]
}
"@/*": [
"./*"
]
},
"target": "ESNext"
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts"
],
"exclude": [
"node_modules"
]
}

0 comments on commit 00f90f9

Please sign in to comment.