Skip to content

Commit 70444ab

Browse files
committed
review zh
1 parent 4d4b129 commit 70444ab

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/zh/migration-build.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
- 对 IE11 的支持:[Vue 3 已经官方放弃对 IE11 的支持](https://github.com/vuejs/rfcs/blob/master/active-rfcs/0038-vue3-ie11-support.md)。如果仍然需要支持 IE11 或更低版本,那你仍需继续使用 Vue 2。
2222

23-
- 服务端渲染:该迁移构建版本可以被用于服务端渲染,但是迁移一个自定义的服务端渲染配置还有很多工作要做。大致的思路是将 `vue-server-renderer` 替换为 [`@vue/server-renderer`](https://github.com/vuejs/vue-next/tree/master/packages/server-renderer)。Vue 3 不再提供一个包渲染器,且我们推荐使用 [Vite](https://cn.vitejs.dev/guide/ssr.html) 以支持 Vue 3 服务端渲染。如果你正在使用 [Nuxt.js](https://zh.nuxtjs.org/),可以尝试 [Nuxt Bridge,一个 Nuxt.js 2 到 3 的兼容层](https://v3.nuxtjs.org/getting-started/bridge/)。对于复杂、生产环境的项目来说,可能最好还是等待一下 [Nuxt 3 (目前处于 beta 阶段)](https://v3.nuxtjs.org/getting-started/introduction)
23+
- 服务端渲染:该迁移构建版本可以被用于服务端渲染,但是迁移一个自定义的服务端渲染配置还有很多工作要做。大致的思路是将 `vue-server-renderer` 替换为 [`@vue/server-renderer`](https://github.com/vuejs/core/tree/master/packages/server-renderer)。Vue 3 不再提供一个包渲染器,且我们推荐使用 [Vite](https://cn.vitejs.dev/guide/ssr.html) 以支持 Vue 3 服务端渲染。如果你正在使用 [Nuxt.js](https://zh.nuxtjs.org/),可以尝试 [Nuxt Bridge,一个 Nuxt.js 2 到 3 的兼容层](https://v3.nuxtjs.org/getting-started/bridge/)。对于复杂、生产环境的项目来说,可能更好还是等待一下 Nuxt 3。
2424

2525
### 预期
2626

@@ -75,13 +75,13 @@
7575
```js
7676
// vue.config.js
7777
module.exports = {
78-
chainWebpack: config => {
78+
chainWebpack: (config) => {
7979
config.resolve.alias.set('vue', '@vue/compat')
8080

8181
config.module
8282
.rule('vue')
8383
.use('vue-loader')
84-
.tap(options => {
84+
.tap((options) => {
8585
return {
8686
...options,
8787
compilerOptions: {
@@ -273,7 +273,7 @@ export default {
273273
| ID | 类型 | 描述 | 文档 |
274274
| ---- | ---- | ---- | ---- |
275275
| GLOBAL_MOUNT_CONTAINER || 被挂载的应用不会替换被挂载到的元素 | [链接](./breaking-changes/mount-changes.html) |
276-
| CONFIG_DEVTOOLS || 生产环境开发者工具现在是一个构建时的开关 | [链接](https://github.com/vuejs/vue-next/tree/master/packages/vue#bundler-build-feature-flags) |
276+
| CONFIG_DEVTOOLS || 生产环境开发者工具现在是一个构建时的开关 | [链接](https://github.com/vuejs/core/tree/master/packages/vue#bundler-build-feature-flags) |
277277
| COMPILER_V_IF_V_FOR_PRECEDENCE || `v-if``v-for` 用在相同的元素上时的处理顺序发生了改变 | [链接](./breaking-changes/v-if-v-for.html) |
278278
| COMPILER_V_IF_SAME_KEY || `v-if` 分支不能再拥有相同的 key | [链接](./breaking-changes/key-attribute.html#on-conditional-branches) |
279279
| COMPILER_V_FOR_TEMPLATE_KEY_PLACEMENT || `<template v-for>` key 现在应该被放在 `<template>`| [链接](./breaking-changes/key-attribute.html#with-template-v-for) |
@@ -322,7 +322,6 @@ export default {
322322
| OPTIONS_BEFORE_DESTROY || `beforeDestroy` -> `beforeUnmount` | |
323323
| OPTIONS_DESTROYED || `destroyed` -> `unmounted` | |
324324
| WATCH_ARRAY || 对于一个数组的操作,侦听无法被触发了,除非使用了深度侦听 | [链接](./breaking-changes/watch.html) |
325-
| V_FOR_REF || `v-for` 内的 `ref` 不再注册 ref 数组 | [链接](./breaking-changes/array-refs.html) |
326325
| V_ON_KEYCODE_MODIFIER || `v-on` 不再支持 keyCode 修饰符 | [链接](./breaking-changes/keycode-modifiers.html) |
327326
| CUSTOM_DIR || 自定义指令钩子命名变化 | [链接](./breaking-changes/custom-directives.html) |
328327
| ATTR_FALSE_VALUE || attribute 的绑定值为布尔值 `false` 时不再将其移除 | [链接](./breaking-changes/attribute-coercion.html) |

0 commit comments

Comments
 (0)