Skip to content

Commit b285b0b

Browse files
kvptyyx990803
authored andcommitted
fix(typescript,babel): tests path for babel and typescript plugins (#1058)
1 parent c648301 commit b285b0b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

packages/@vue/cli-plugin-babel/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
Uses Babel 7 + `babel-loader` + [@vue/babel-preset-app](https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/babel-preset-app) by default, but can be configured via `.babelrc` to use any other Babel presets or plugins.
88

9-
By default, `babel-loader` is only applied to files inside `src` and `test` directories. If you wish to explicitly transpile a dependency module, you will need to configure webpack in `vue.config.js`:
9+
By default, `babel-loader` is only applied to files inside `src` and `tests` directories. If you wish to explicitly transpile a dependency module, you will need to configure webpack in `vue.config.js`:
1010

1111
``` js
1212
module.exports = {

packages/@vue/cli-plugin-babel/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = (api, options) => {
88
.test(/\.jsx?$/)
99
.include
1010
.add(api.resolve('src'))
11-
.add(api.resolve('test'))
11+
.add(api.resolve('tests'))
1212
.end()
1313
.use('cache-loader')
1414
.loader('cache-loader')

packages/@vue/cli-plugin-typescript/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ TypeScript can be configured via `tsconfig.json`.
1010

1111
This plugin can be used alongside `@vue/cli-plugin-babel`. When used with Babel, this plugin will output ES2015 and delegate the rest to Babel for auto polyfill based on browser targets.
1212

13-
By default, `ts-loader` is only applied to files inside `src` and `test` directories. If you wish to explicitly transpile a dependency module, you will need to configure webpack in `vue.config.js`:
13+
By default, `ts-loader` is only applied to files inside `src` and `tests` directories. If you wish to explicitly transpile a dependency module, you will need to configure webpack in `vue.config.js`:
1414

1515
``` js
1616
module.exports = {

packages/@vue/cli-plugin-typescript/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = (api, {
2121
.test(/\.tsx?$/)
2222
.include
2323
.add(api.resolve('src'))
24-
.add(api.resolve('test'))
24+
.add(api.resolve('tests'))
2525
.end()
2626

2727
const vueLoader = config.module

0 commit comments

Comments
 (0)