Unverified Commit 90a3b82d authored by Arnab Sen's avatar Arnab Sen Committed by GitHub

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
parent d1b02c6d
...@@ -375,7 +375,7 @@ module.exports = nextConfig ...@@ -375,7 +375,7 @@ module.exports = nextConfig
Install the latest version of the React Compiler plugin: Install the latest version of the React Compiler plugin:
```bash filename="Terminal" ```bash filename="Terminal"
npm install babel-plugin-react-compiler@latest npm install -D babel-plugin-react-compiler
``` ```
> **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. > **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.
......
...@@ -16,7 +16,7 @@ This avoids compiling everything and keeps the performance cost minimal. You may ...@@ -16,7 +16,7 @@ This avoids compiling everything and keeps the performance cost minimal. You may
To use it, install the `babel-plugin-react-compiler`: To use it, install the `babel-plugin-react-compiler`:
```bash filename="Terminal" ```bash filename="Terminal"
npm install babel-plugin-react-compiler npm install -D babel-plugin-react-compiler
``` ```
Then, add `reactCompiler` option in `next.config.js`: Then, add `reactCompiler` option in `next.config.js`:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment