File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -174,9 +174,9 @@ Babel 的配置可以通过 `.babelrc` 或 `babel-loader` 选项来完成。
174
174
175
175
### 排除 node_modules
176
176
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> ` 部分在转译时将会被排除在外。
178
178
179
- 为了确保 JS 的转译应用到 ` node_modules ` 的 Vue 单文件组件,你需要通过替换使用一个排除函数将其设为白名单 :
179
+ 为了确保 JS 的转译应用到 ` node_modules ` 的 Vue 单文件组件,你需要通过使用一个排除函数将它们加入白名单 :
180
180
181
181
``` js
182
182
{
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ v15 也允许为 loader 使用非序列化的选项,这种选项在之前的
61
61
62
62
` exclude: /node_modules/ ` 在运用于 ` .js ` 文件的 JS 转译规则 (例如 ` babel-loader ` ) 中是蛮常见的。鉴于 v15 中的推导变化,如果你导入一个 ` node_modules ` 内的 Vue 单文件组件,它的 ` <script> ` 部分在转译时将会被排除在外。
63
63
64
- 为了确保 JS 的转译应用到 ` node_modules ` 的 Vue 单文件组件,你需要通过替换使用一个排除函数将其设为白名单 :
64
+ 为了确保 JS 的转译应用到 ` node_modules ` 的 Vue 单文件组件,你需要通过使用一个排除函数将它们加入白名单 :
65
65
66
66
``` js
67
67
{
You can’t perform that action at this time.
0 commit comments