Skip to content

Commit 90a3b82

Browse files
authored
Update command to install babel-plugin-react-compiler as a devDependency (#85235)
Updated command to install babel-plugin-react-compiler as a devDependency instead of as a dependency, mirroring React's instructions - https://react.dev/learn/react-compiler/installation
1 parent d1b02c6 commit 90a3b82

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/01-app/02-guides/upgrading/version-16.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ module.exports = nextConfig
375375
Install the latest version of the React Compiler plugin:
376376

377377
```bash filename="Terminal"
378-
npm install babel-plugin-react-compiler@latest
378+
npm install -D babel-plugin-react-compiler
379379
```
380380

381381
> **Good to know:** Expect compile times in development and during builds to be higher when enabling this option as the React Compiler relies on Babel.

docs/01-app/03-api-reference/05-config/01-next-config-js/reactCompiler.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This avoids compiling everything and keeps the performance cost minimal. You may
1616
To use it, install the `babel-plugin-react-compiler`:
1717

1818
```bash filename="Terminal"
19-
npm install babel-plugin-react-compiler
19+
npm install -D babel-plugin-react-compiler
2020
```
2121

2222
Then, add `reactCompiler` option in `next.config.js`:

0 commit comments

Comments
 (0)