Skip to content

Commit cc117ba

Browse files
authored
Babel plugins are dev dependencies for React Compiler
1 parent 50d6991 commit cc117ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/learn/react-compiler.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ Similarly to apps, it is not necessary to fully compile 100% of your components
197197
### Babel {/*usage-with-babel*/}
198198

199199
<TerminalBlock>
200-
{`npm install babel-plugin-react-compiler@rc`}
200+
{`npm install -D babel-plugin-react-compiler@rc`}
201201
</TerminalBlock>
202202

203203
The compiler includes a Babel plugin which you can use in your build pipeline to run the compiler.
@@ -252,7 +252,7 @@ Please refer to the [Next.js docs](https://nextjs.org/docs/app/api-reference/nex
252252
Install `vite-plugin-babel`, and add the compiler's Babel plugin to it:
253253

254254
<TerminalBlock>
255-
{`npm install vite-plugin-babel`}
255+
{`npm install -D vite-plugin-babel`}
256256
</TerminalBlock>
257257

258258
```js {2,14}

0 commit comments

Comments
 (0)