Skip to content

Commit fc5b799

Browse files
committed
[docs][zh] small tweaks
1 parent f4084ab commit fc5b799

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/zh/guide/pre-processors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ Babel 的配置可以通过 `.babelrc` 或 `babel-loader` 选项来完成。
174174

175175
### 排除 node_modules
176176

177-
`exclude: /node_modules/` 在运用于 `.js` 文件的 JS 转译规则 (例如 `babel-loader`) 中是蛮常见的。鉴于 v15 中的推导变化,如果你导入一个 `node_modules` 内的 Vue 单文件组件,它的 `<script>` 部分在转译时将会被排除在外。
177+
`exclude: /node_modules/` 在应用于 `.js` 文件的 JS 转译规则 (例如 `babel-loader`) 中是蛮常见的。鉴于 v15 中的推导变化,如果你导入一个 `node_modules` 内的 Vue 单文件组件,它的 `<script>` 部分在转译时将会被排除在外。
178178

179-
为了确保 JS 的转译应用到 `node_modules` 的 Vue 单文件组件,你需要通过替换使用一个排除函数将其设为白名单
179+
为了确保 JS 的转译应用到 `node_modules` 的 Vue 单文件组件,你需要通过使用一个排除函数将它们加入白名单
180180

181181
``` js
182182
{

docs/zh/migrating.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ v15 也允许为 loader 使用非序列化的选项,这种选项在之前的
6161

6262
`exclude: /node_modules/` 在运用于 `.js` 文件的 JS 转译规则 (例如 `babel-loader`) 中是蛮常见的。鉴于 v15 中的推导变化,如果你导入一个 `node_modules` 内的 Vue 单文件组件,它的 `<script>` 部分在转译时将会被排除在外。
6363

64-
为了确保 JS 的转译应用到 `node_modules` 的 Vue 单文件组件,你需要通过替换使用一个排除函数将其设为白名单
64+
为了确保 JS 的转译应用到 `node_modules` 的 Vue 单文件组件,你需要通过使用一个排除函数将它们加入白名单
6565

6666
``` js
6767
{

0 commit comments

Comments
 (0)