diff --git a/.changeset/violet-walls-cover.md b/.changeset/violet-walls-cover.md index b304565f26..a98f317c24 100644 --- a/.changeset/violet-walls-cover.md +++ b/.changeset/violet-walls-cover.md @@ -2,4 +2,4 @@ 'nextra': minor --- -compile `nextra/components`, `nextra/hooks` and `nextra-theme-blog` source code with react-compiler +compile `nextra/components`, `nextra/hooks`, `nextra-theme-docs` and `nextra-theme-blog` source code with react-compiler diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 5044c51c36..ad6ecfabf3 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -153,10 +153,7 @@ module.exports = { files: ['packages/**'], plugins: ['eslint-plugin-react-compiler'], rules: { - 'no-restricted-imports': [ - 'error', - REACT_COMPILER_RESTRICT - ], + 'no-restricted-imports': ['error', REACT_COMPILER_RESTRICT], 'react-compiler/react-compiler': 'error' } }, diff --git a/packages/nextra-theme-docs/package.json b/packages/nextra-theme-docs/package.json index 37543aa56d..e214cebdca 100644 --- a/packages/nextra-theme-docs/package.json +++ b/packages/nextra-theme-docs/package.json @@ -39,11 +39,11 @@ "zustand": "^5.0.1" }, "devDependencies": { - "esbuild-react-compiler-plugin": "workspace:*", "@tailwindcss/postcss": "^4.0.0-beta.2", "@testing-library/react": "^16.0.0", "@types/react": "^18.2.23", "@vitejs/plugin-react": "^4.1.0", + "esbuild-react-compiler-plugin": "workspace:*", "jsdom": "^25.0.0", "next": "^15.0.2", "nextra": "workspace:*", diff --git a/packages/nextra-theme-docs/tsup.config.ts b/packages/nextra-theme-docs/tsup.config.ts index 54cf8bd049..fda25a799d 100644 --- a/packages/nextra-theme-docs/tsup.config.ts +++ b/packages/nextra-theme-docs/tsup.config.ts @@ -1,6 +1,6 @@ +import { reactCompilerPlugin } from 'esbuild-react-compiler-plugin' import { defineConfig } from 'tsup' import packageJson from './package.json' -import { reactCompilerPlugin } from 'esbuild-react-compiler-plugin' export const defaultEntry = [ 'src/**/*.{ts,tsx}',