Skip to content

Commit ede9f86

Browse files
committed
docs(cn): resolve conflicts
1 parent 028bc40 commit ede9f86

7 files changed

+12
-65
lines changed

guide/api-environment-frameworks.md

+2-11
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,14 @@
11
# 用于框架的环境 API {#environment-api-for-frameworks}
22

3-
<<<<<<< HEAD
43
:::warning 实验性
5-
这个 API 的初始版本在 Vite 5.1 中以 "Vite Runtime API" 的名字被引入。这份指南介绍了经过修订后的 API,被重新命名为环境 API(Environment API)。这个 API 将在 Vite 6 中作为实验性功能发布。你现在已经可以在最新的 `[email protected]` 版本中进行测试。
6-
=======
7-
:::warning Experimental
8-
Environment API is experimental. We'll keep the APIs stable during Vite 6 to let the ecosystem experiment and build on top of it. We're planning to stabilize these new APIs with potential breaking changes in Vite 7.
9-
>>>>>>> c962bd135b0ac583b72643c2746632bd5900805f
4+
环境 API 是实验性的。在 Vite 6 期间,我们将保持这些 API 的稳定,以便生态系统可以在其基础上进行实验和构建。我们计划在 Vite 7 中稳定这些新 API,并可能进行一些重大更改。
105

116
资料:
127

138
- [反馈讨论](https://github.com/vitejs/vite/discussions/16358) 我们在此处收集新 API 的反馈。
149
- [环境 API PR](https://github.com/vitejs/vite/pull/16471) 新 API 在此处被实现并进行了审查。
1510

16-
<<<<<<< HEAD
17-
在参与测试这个提议的过程中,请与我们分享您的反馈。
18-
=======
19-
Please share your feedback with us.
20-
>>>>>>> c962bd135b0ac583b72643c2746632bd5900805f
11+
请与我们分享您的反馈。
2112
:::
2213

2314
## 环境和框架 {#environments-and-frameworks}

guide/api-environment-instances.md

+2-11
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,14 @@
11
# 使用 `Environment` 实例 {#using-environment-instances}
22

3-
<<<<<<< HEAD
43
:::warning 实验性
5-
这个 API 的初始版本在 Vite 5.1 中以 "Vite Runtime API" 的名字被引入。这份指南介绍了经过修订后的 API,被重新命名为环境 API(Environment API)。这个 API 将在 Vite 6 中作为实验性功能发布。你现在已经可以在最新的 `[email protected]` 版本中进行测试。
6-
=======
7-
:::warning Experimental
8-
Environment API is experimental. We'll keep the APIs stable during Vite 6 to let the ecosystem experiment and build on top of it. We're planning to stabilize these new APIs with potential breaking changes in Vite 7.
9-
>>>>>>> c962bd135b0ac583b72643c2746632bd5900805f
4+
环境 API 是实验性的。在 Vite 6 期间,我们将保持这些 API 的稳定,以便生态系统可以在其基础上进行实验和构建。我们计划在 Vite 7 中稳定这些新 API,并可能进行一些重大更改。
105

116
资料:
127

138
- [反馈讨论](https://github.com/vitejs/vite/discussions/16358) 我们在此处收集新 API 的反馈。
149
- [环境 API PR](https://github.com/vitejs/vite/pull/16471) 新 API 在此处被实现并进行了审查。
1510

16-
<<<<<<< HEAD
17-
在参与测试这个提议的过程中,请与我们分享您的反馈。
18-
=======
19-
Please share your feedback with us.
20-
>>>>>>> c962bd135b0ac583b72643c2746632bd5900805f
11+
请与我们分享您的反馈。
2112
:::
2213

2314
## 访问环境 {#accessing-the-environments}

guide/api-environment-plugins.md

+2-11
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,14 @@
11
# 用于插件的环境 API {#environment-api-for-plugins}
22

3-
<<<<<<< HEAD
43
:::warning 实验性
5-
这个 API 的初始版本在 Vite 5.1 中以 "Vite Runtime API" 的名字被引入。这份指南介绍了经过修订后的 API,被重新命名为环境 API(Environment API)。这个 API 将在 Vite 6 中作为实验性功能发布。你现在已经可以在最新的 `[email protected]` 版本中进行测试。
6-
=======
7-
:::warning Experimental
8-
Environment API is experimental. We'll keep the APIs stable during Vite 6 to let the ecosystem experiment and build on top of it. We're planning to stabilize these new APIs with potential breaking changes in Vite 7.
9-
>>>>>>> c962bd135b0ac583b72643c2746632bd5900805f
4+
环境 API 是实验性的。在 Vite 6 期间,我们将保持这些 API 的稳定,以便生态系统可以在其基础上进行实验和构建。我们计划在 Vite 7 中稳定这些新 API,并可能进行一些重大更改。
105

116
资料:
127

138
- [反馈讨论](https://github.com/vitejs/vite/discussions/16358) 我们在此处收集新 API 的反馈。
149
- [环境 API PR](https://github.com/vitejs/vite/pull/16471) 新 API 在此处被实现并进行了审查。
1510

16-
<<<<<<< HEAD
17-
在参与测试这个提议的过程中,请与我们分享您的反馈。
18-
=======
19-
Please share your feedback with us.
20-
>>>>>>> c962bd135b0ac583b72643c2746632bd5900805f
11+
请与我们分享您的反馈。
2112
:::
2213

2314
## 在钩子中访问当前环境 {#accessing-the-current-environment-in-hooks}

guide/api-environment-runtimes.md

+2-11
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,14 @@
11
# 用于运行时的环境 API {#environment-api-for-runtimes}
22

3-
<<<<<<< HEAD
43
:::warning 实验性
5-
这个 API 的初始版本在 Vite 5.1 中以 "Vite Runtime API" 的名字被引入。这份指南介绍了经过修订后的 API,被重新命名为环境 API(Environment API)。这个 API 将在 Vite 6 中作为实验性功能发布。你现在已经可以在最新的 `[email protected]` 版本中进行测试。
6-
=======
7-
:::warning Experimental
8-
Environment API is experimental. We'll keep the APIs stable during Vite 6 to let the ecosystem experiment and build on top of it. We're planning to stabilize these new APIs with potential breaking changes in Vite 7.
9-
>>>>>>> c962bd135b0ac583b72643c2746632bd5900805f
4+
环境 API 是实验性的。在 Vite 6 期间,我们将保持这些 API 的稳定,以便生态系统可以在其基础上进行实验和构建。我们计划在 Vite 7 中稳定这些新 API,并可能进行一些重大更改。
105

116
资料:
127

138
- [反馈讨论](https://github.com/vitejs/vite/discussions/16358) 我们在此处收集新 API 的反馈。
149
- [环境 API PR](https://github.com/vitejs/vite/pull/16471) 新 API 在此处被实现并进行了审查。
1510

16-
<<<<<<< HEAD
17-
在参与测试这个提议的过程中,请与我们分享您的反馈。
18-
=======
19-
Please share your feedback with us.
20-
>>>>>>> c962bd135b0ac583b72643c2746632bd5900805f
11+
请与我们分享您的反馈。
2112
:::
2213

2314
## 环境工厂 {#environment-factories}

guide/api-environment.md

+2-11
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,14 @@
11
# 环境 API {#environment-api}
22

3-
<<<<<<< HEAD
43
:::warning 实验性
5-
这个 API 的初始版本在 Vite 5.1 中以 "Vite Runtime API" 的名字被引入。这份指南介绍了经过修订后的 API,被重新命名为环境 API(Environment API)。这个 API 将在 Vite 6 中作为实验性功能发布。你现在已经可以在最新的 `[email protected]` 版本中进行测试。
6-
=======
7-
:::warning Experimental
8-
Environment API is experimental. We'll keep the APIs stable during Vite 6 to let the ecosystem experiment and build on top of it. We're planning to stabilize these new APIs with potential breaking changes in Vite 7.
9-
>>>>>>> c962bd135b0ac583b72643c2746632bd5900805f
4+
环境 API 是实验性的。在 Vite 6 期间,我们将保持这些 API 的稳定,以便生态系统可以在其基础上进行实验和构建。我们计划在 Vite 7 中稳定这些新 API,并可能进行一些重大更改。
105

116
资料:
127

138
- [反馈讨论](https://github.com/vitejs/vite/discussions/16358) 我们在此处收集新 API 的反馈。
149
- [环境 API PR](https://github.com/vitejs/vite/pull/16471) 新 API 在此处被实现并进行了审查。
1510

16-
<<<<<<< HEAD
17-
在参与测试这个提议的过程中,请与我们分享您的反馈。
18-
=======
19-
Please share your feedback with us.
20-
>>>>>>> c962bd135b0ac583b72643c2746632bd5900805f
11+
请与我们分享您的反馈。
2112
:::
2213

2314
## 引入环境概念 {#formalizing-environments}

guide/assets.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@ import imgUrl from './img.png'
1414
document.getElementById('hero-img').src = imgUrl
1515
```
1616

17-
<<<<<<< HEAD
18-
例如,`imgUrl` 在开发时会是 `/img.png`,在生产构建后会是 `/assets/img.2d8efhg.png`
19-
=======
20-
For example, `imgUrl` will be `/src/img.png` during development, and become `/assets/img.2d8efhg.png` in the production build.
21-
>>>>>>> c962bd135b0ac583b72643c2746632bd5900805f
17+
例如,`imgUrl` 在开发时会是 `/src/img.png`,在生产构建后会是 `/assets/img.2d8efhg.png`
2218

2319
行为类似于 Webpack 的 `file-loader`。区别在于导入既可以使用绝对公共路径(基于开发期间的项目根路径),也可以使用相对路径。
2420

plugins/index.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,7 @@ Vite 旨在为常见的 web 开发工作提供开箱即用的支持。在搜索
3030

3131
### [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) {#vitejs-plugin-react-swc}
3232

33-
<<<<<<< HEAD
34-
- 在开发时会将 Babel 替换为 SWC。在构建时,若使用了插件则会使用 SWC+esbuild,若没有使用插件则仅会用到 esbuild。对不需要非标准 React 扩展的大型项目,冷启动和模块热替换(HMR)将会有显著提升。
35-
=======
36-
- Replaces Babel with SWC during development. During production builds, SWC+esbuild are used when using plugins, and esbuild only otherwise. For big projects that don't require non-standard React extensions, cold start and Hot Module Replacement (HMR) can be significantly faster.
37-
>>>>>>> c962bd135b0ac583b72643c2746632bd5900805f
33+
- 在开发时会将 Babel 替换为 SWC。在生产环境构建期间,若使用了插件则会使用 SWC+esbuild,若没有使用插件则仅会用到 esbuild。对不需要非标准 React 扩展的大型项目,冷启动和模块热替换(HMR)将会有显著提升。
3834

3935
### [@vitejs/plugin-legacy](https://github.com/vitejs/vite/tree/main/packages/plugin-legacy) {#vitejs-plugin-legacy}
4036

0 commit comments

Comments
 (0)