Skip to content

Commit a490ce6

Browse files
committed
docs: update README
1 parent 455ee11 commit a490ce6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ yarn add -D react-compiler-webpack
1313
pnpm add -D react-compiler-webpack
1414
```
1515

16-
`react-compiler-webpack` has already declares `babel-plugin-react-compiler` as its peer dependency and it will be installed automatically when you install `react-compiler-webpack` with most package managers. But you can also explictly specify the version you like by manually install `babel-plugin-react-compiler` in your project:
16+
`react-compiler-webpack` has already declares `babel-plugin-react-compiler` as its peer dependency and it will be installed automatically when you install `react-compiler-webpack` with most package managers. But you can also explictly specify the version you want to use by manually install `babel-plugin-react-compiler` in your project:
1717

1818
```bash
1919
# npm
@@ -26,8 +26,6 @@ pnpm add -D babel-plugin-react-compiler
2626

2727
## Usage
2828

29-
### webpack/rspack
30-
3129
```js
3230
// webpack.config.js / rspack.config.js
3331

@@ -44,6 +42,7 @@ module.exports = {
4442
// babel-loader, swc-loader, esbuild-loader, or anything you like to transpile JSX should go here.
4543
// If you are using rspack, the rspack's buiilt-in react transformation is sufficient.
4644
// { loader: 'swc-loader' },
45+
//
4746
// Now add reactCompilerLoader
4847
{
4948
loader: reactCompilerLoader,

0 commit comments

Comments
 (0)