Skip to content

Commit 2bbf7ee

Browse files
docs(README): fix typos (#4)
1 parent df4e5e5 commit 2bbf7ee

File tree

1 file changed

+18
-20
lines changed

1 file changed

+18
-20
lines changed

README.md

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -26,32 +26,30 @@ const { defineReactCompilerLoaderOption, reactCompilerLoader } = require('react-
2626
module.exports = {
2727
module: {
2828
rules: [
29-
rules: [
30-
{
31-
test: /\.[mc]?[jt]sx$/i,
32-
exclude: /node_modules/,
33-
use: [
34-
// babel-loader, swc-loader, esbuild-loader, or anything you like to transpile JSX should go here.
35-
// If you are using rspack, the rspack's buiilt-in react transformation is sufficient.
36-
// { loader: 'swc-loader' },
37-
// Now add forgetti-loader
38-
{
39-
loader: reactCompilerLoader,
40-
options: defineReactCompilerLoaderOption({
41-
// React Compiler options goes here
42-
})
43-
}
44-
]
45-
}
46-
]
29+
{
30+
test: /\.[mc]?[jt]sx$/i,
31+
exclude: /node_modules/,
32+
use: [
33+
// babel-loader, swc-loader, esbuild-loader, or anything you like to transpile JSX should go here.
34+
// If you are using rspack, the rspack's buiilt-in react transformation is sufficient.
35+
// { loader: 'swc-loader' },
36+
// Now add forgetti-loader
37+
{
38+
loader: reactCompilerLoader,
39+
options: defineReactCompilerLoaderOption({
40+
// React Compiler options goes here
41+
})
42+
}
43+
]
44+
}
4745
]
4846
}
4947
};
5048
```
5149

5250
### Next.js
5351

54-
Next.js has already intergrated the React Compiler and can be enabled with the following configuration:
52+
Next.js has already integrated the React Compiler and can be enabled with the following configuration:
5553

5654
```js
5755
// next.config.js
@@ -62,7 +60,7 @@ module.exports = {
6260
}
6361
```
6462

65-
Using Next.js built-in React Compiler intergration is highly recommended. But if you insist on going with `react-compiler-webpack`, you can follow use the provided Next.js plugin:
63+
Using Next.js built-in React Compiler integration is highly recommended. But if you insist on going with `react-compiler-webpack`, you can follow use the provided Next.js plugin:
6664

6765
```js
6866
// next.config.js

0 commit comments

Comments
 (0)