Skip to content

Commit e94dc39

Browse files
committed
docs(cn): fix conflicts
1 parent a9a6562 commit e94dc39

File tree

3 files changed

+4
-25
lines changed

3 files changed

+4
-25
lines changed

blog/announcing-vite2.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,7 @@ Vite 1.0 虽然之前进入了 RC 阶段,但在发布之前我们决定进行
2424

2525
设计 Vite 的初衷是为了 [探索黑客原型项目以更好的支持 Vue 单文件组件](https://github.com/vuejs/vue-dev-server)。Vite 1 则是这个想法的延续,并在此基础上增加了对 HMR 支持。
2626

27-
<<<<<<< HEAD
28-
但 2.0 基于之前的经验提供了一个更稳定灵活的内部架构,从而可以完全通过插件机制来支持任意框架。现在 Vite 提供 [官方的 Vue, React, Preact, Lit Element 项目模版](https://github.com/vitejs/vite/tree/main/packages/create-app),而 Svelte 社区也在开发 Vite 整合方案。
29-
=======
30-
Vite 2.0 takes what we learned along the way and is redesigned from scratch with a more robust internal architecture. It is now completely framework agnostic, and all framework-specific support is delegated to plugins. There are now [official templates for Vue, React, Preact, Lit Element](https://github.com/vitejs/vite/tree/main/packages/create-vite), and ongoing community efforts for Svelte integration.
31-
>>>>>>> 842e1ad2444a8a3e16e70c760da33830dfbe1fe7
27+
但 2.0 基于之前的经验提供了一个更稳定灵活的内部架构,从而可以完全通过插件机制来支持任意框架。现在 Vite 提供 [官方的 Vue, React, Preact, Lit Element 项目模版](https://github.com/vitejs/vite/tree/main/packages/create-vite),而 Svelte 社区也在开发 Vite 整合方案。
3228

3329
### 全新插件机制和 API {#new-plugin-format-and-api}
3430

guide/features.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,7 @@ Vite 通过 HTTP 头来缓存请求得到的依赖,所以如果你想要编辑
2424

2525
Vite 提供了一套原生 ESM 的 [HMR API](./api-hmr)。 具有 HMR 功能的框架可以利用该 API 提供即时、准确的更新,而无需重新加载页面或清除应用程序状态。Vite 内置了 HMR 到 [Vue 单文件组件(SFC)](https://github.com/vitejs/vite/tree/main/packages/plugin-vue)[React Fast Refresh](https://github.com/vitejs/vite/tree/main/packages/plugin-react-refresh) 中。也通过 [@prefresh/vite](https://github.com/JoviDeCroock/prefresh/tree/main/packages/vite) 对 Preact 实现了官方集成。
2626

27-
<<<<<<< HEAD
28-
注意,你不需要手动设置这些 —— 当你 [create an app via `@vitejs/create-app`](./) 创建应用程序时,所选模板已经为你预先配置了这些。
29-
=======
30-
Note you don't need to manually set these up - when you [create an app via `create-vite`](./), the selected templates would have these pre-configured for you already.
31-
>>>>>>> 842e1ad2444a8a3e16e70c760da33830dfbe1fe7
27+
注意,你不需要手动设置这些 —— 当你 [create an app via `create-vite`](./) 创建应用程序时,所选模板已经为你预先配置了这些。
3228

3329
## TypeScript {#typescript}
3430

guide/index.md

+2-15
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,8 @@ $ pnpx create-vite
4848
# npm 6.x
4949
npm init vite@latest my-vue-app --template vue
5050

51-
<<<<<<< HEAD
5251
# npm 7+, 需要额外的双横线:
53-
npm init @vitejs/app my-vue-app -- --template vue
54-
=======
55-
# npm 7+, extra double-dash is needed:
5652
npm init vite@latest my-vue-app -- --template vue
57-
>>>>>>> 842e1ad2444a8a3e16e70c760da33830dfbe1fe7
5853

5954
# yarn
6055
yarn create vite my-vue-app --template vue
@@ -75,19 +70,11 @@ yarn create vite my-vue-app --template vue
7570
- `svelte`
7671
- `svelte-ts`
7772

78-
<<<<<<< HEAD
79-
查看 [@vitejs/create-app](https://github.com/vitejs/vite/tree/main/packages/create-app) 获取每个模板的更多细节。
80-
=======
81-
See [create-vite](https://github.com/vitejs/vite/tree/main/packages/create-vite) for more details on each template.
82-
>>>>>>> 842e1ad2444a8a3e16e70c760da33830dfbe1fe7
73+
查看 [create-vite](https://github.com/vitejs/vite/tree/main/packages/create-vite) 以获取每个模板的更多细节。
8374

8475
## 社区模板 {#community-templates}
8576

86-
<<<<<<< HEAD
87-
@vitejs/create-app 是一个快速生成主流框架基础模板的工具。查看 Awesome Vite 仓库的 [社区维护模板](https://github.com/vitejs/awesome-vite#templates),里面包含各种工具和不同框架的模板。你可以用如 [degit](https://github.com/Rich-Harris/degit) 之类的工具,使用社区模版来搭建项目。
88-
=======
89-
create-vite is a tool to quickly start a project from a basic template for popular frameworks. Check out Awesome Vite for [community maintained templates](https://github.com/vitejs/awesome-vite#templates) that include other tools or target different frameworks. You can use a tool like [degit](https://github.com/Rich-Harris/degit) to scaffold your project with one of the templates.
90-
>>>>>>> 842e1ad2444a8a3e16e70c760da33830dfbe1fe7
77+
create-vite 是一个快速生成主流框架基础模板的工具。查看 Awesome Vite 仓库的 [社区维护模板](https://github.com/vitejs/awesome-vite#templates),里面包含各种工具和不同框架的模板。你可以用如 [degit](https://github.com/Rich-Harris/degit) 之类的工具,使用社区模版来搭建项目。
9178

9279
```bash
9380
npx degit user/project my-project

0 commit comments

Comments
 (0)