Skip to content

Commit

Permalink
[code-infra] Try out react compiler on the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Janpot committed Feb 10, 2025
1 parent ef79103 commit 7e6e71f
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 11 deletions.
3 changes: 3 additions & 0 deletions docs/next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ const pkgContent = fs.readFileSync(path.resolve(workspaceRoot, 'package.json'),
const pkg = JSON.parse(pkgContent);

export default withDocsInfra({
experimental: {
reactCompiler: true,
},
webpack: (config: NextConfig, options): NextConfig => {
const plugins = config.plugins.slice();

Expand Down
1 change: 1 addition & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"autosuggest-highlight": "^3.3.4",
"babel-plugin-module-resolver": "^5.0.2",
"babel-plugin-optimize-clsx": "^2.6.2",
"babel-plugin-react-compiler": "19.0.0-beta-714736e-20250131",
"babel-plugin-react-remove-properties": "^0.3.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
"chance": "^1.1.12",
Expand Down
33 changes: 22 additions & 11 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7e6e71f

Please sign in to comment.