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` 选项来完成。
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{
Original file line number Diff line number Diff 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{
You can’t perform that action at this time.
0 commit comments