Skip to content

Commit f681f79

Browse files
authored
fix conflict
1 parent 63cf1bc commit f681f79

1 file changed

Lines changed: 3 additions & 11 deletions

File tree

src/content/learn/react-compiler/installation.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,7 @@ module.exports = {
6464

6565
### Vite {/*vite*/}
6666

67-
<<<<<<< HEAD
68-
如果你使用 Vite,可以将插件添加到 vite-plugin-react 中:
69-
=======
70-
If you use Vite with version 6.0.0 or later of `@vitejs/plugin-react`, you can use the `reactCompilerPreset`:
71-
>>>>>>> 47e64bf7ad81aab8bacfa791a37816ee869135eb
67+
如果你使用 Vite v6.0.0 或者更高版本,那么可以从 `@vitejs/plugin-react` 中导出并配置 `reactCompilerPreset`
7268

7369
<TerminalBlock>
7470
npm install -D @rolldown/plugin-babel
@@ -91,7 +87,7 @@ export default defineConfig({
9187
```
9288

9389
<Note>
94-
In `@vitejs/plugin-react@6.0.0`, the inline Babel option was removed. If you're using an older version, you can use:
90+
`@vitejs/plugin-react@6.0.0` 开始,内联的 Babel 选项已经被移除。如果你使用的是更低版本,可以通过下面的方式进行配置:
9591

9692
```js
9793
// vite.config.js
@@ -110,11 +106,7 @@ export default defineConfig({
110106
```
111107
</Note>
112108

113-
<<<<<<< HEAD
114-
或者,如果你更倾向于为 Vite 使用一个独立的 Babel 插件:
115-
=======
116-
Alternatively, you can use the Babel plugin directly with `@rolldown/plugin-babel`:
117-
>>>>>>> 47e64bf7ad81aab8bacfa791a37816ee869135eb
109+
或者, 你也可以通过 `@rolldown/plugin-babel` 直接使用 Babel 插件。
118110

119111
```js {3,9}
120112
// vite.config.js

0 commit comments

Comments
 (0)