Skip to content

Commit 8f8a125

Browse files
author
Guillaume Chau
committed
chore: merge dev
2 parents 0f61cd0 + 273d05f commit 8f8a125

File tree

133 files changed

+5945
-4167
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+5945
-4167
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ module.exports = {
1717
}],
1818
"node/no-extraneous-require": ["error", {
1919
"allowModules": [
20+
"@vue/cli-service",
2021
"@vue/cli-test-utils"
2122
]
2223
}]

CHANGELOG.md

Lines changed: 205 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,209 @@
11

2+
## 4.0.0-alpha.1 (2019-05-25)
3+
4+
#### :boom: Breaking Changes
5+
* `@vue/cli-plugin-eslint`, `@vue/cli-service-global`, `@vue/cli-service`, `@vue/cli-ui-addon-widgets`, `@vue/cli`
6+
* [#3975](https://github.com/vuejs/vue-cli/pull/3975) chore!: change default value of `lintOnSave` option ([@sodatea](https://github.com/sodatea))
7+
* `@vue/cli-service`
8+
* [#3943](https://github.com/vuejs/vue-cli/pull/3943) chore: upgrade webpack-chain to v6 ([@sodatea](https://github.com/sodatea))
9+
* `@vue/cli-plugin-typescript`
10+
* [#3909](https://github.com/vuejs/vue-cli/pull/3909) chore: prefer .tsx? files over .jsx? file extensions ([@LinusBorg](https://github.com/LinusBorg))
11+
12+
Most of the following new features and bugfixes also applies to v3.8.0
13+
14+
#### :rocket: New Features
15+
* `@vue/cli-plugin-pwa`, `@vue/cli-ui`
16+
* [#3939](https://github.com/vuejs/vue-cli/pull/3939) add 'manifestCrossorigin' option ([@BigsonLvrocha](https://github.com/BigsonLvrocha))
17+
* `@vue/cli-ui`
18+
* [#3929](https://github.com/vuejs/vue-cli/pull/3929) add support for inquirer type `editor` ([@Akryum](https://github.com/Akryum))
19+
* [#3955](https://github.com/vuejs/vue-cli/pull/3955) allow rename (nickname) a project ([@Akryum](https://github.com/Akryum))
20+
* `@vue/cli-service`
21+
* [#4011](https://github.com/vuejs/vue-cli/pull/4011) enable HMR when extracting CSS in dev ([@achretien](https://github.com/achretien))
22+
* `@vue/cli`
23+
* [#3860](https://github.com/vuejs/vue-cli/pull/3860) suggest matching commands if the user mistypes ([@jamesgeorge007](https://github.com/jamesgeorge007))
24+
25+
#### :bug: Bug Fix
26+
* `@vue/cli-upgrade`
27+
* [#4036](https://github.com/vuejs/vue-cli/pull/4036) fix: add missing dependencies to @vue/cli-upgrade ([@sodatea](https://github.com/sodatea))
28+
* `@vue/cli-service`
29+
* [#4034](https://github.com/vuejs/vue-cli/pull/4034) fix bundles' compatibility with workers for those built in development mode ([@sodatea](https://github.com/sodatea))
30+
* [#4025](https://github.com/vuejs/vue-cli/pull/4025) fix: update the css-loader runtime path for css-loader v2 ([@sodatea](https://github.com/sodatea))
31+
* `@vue/cli-ui`
32+
* [#3992](https://github.com/vuejs/vue-cli/pull/3992) update dependencies and fix peer dependency warnings ([@sodatea](https://github.com/sodatea))
33+
* [#3966](https://github.com/vuejs/vue-cli/pull/3966) fix `detectLanguage` function ([@maple3142](https://github.com/maple3142))
34+
35+
#### :house: Internal
36+
* `@vue/cli-service`
37+
* [#4018](https://github.com/vuejs/vue-cli/pull/4018) set `clientLogLevel` to `silent` instead of `none` ([@svtfrancisco](https://github.com/svtfrancisco)
38+
* `@vue/cli`
39+
* [#4003](https://github.com/vuejs/vue-cli/pull/4003) refactor: replace recast with jscodeshift for `injectImportsAndOptions`, fixes [#3309](https://github.com/vuejs/vue-cli/issues/3309) ([@sodatea](https://github.com/sodatea))
40+
41+
#### :hammer: Underlying Tools
42+
* `@vue/cli-service`
43+
* [#4020](https://github.com/vuejs/vue-cli/pull/4020) upgrade webpack-dev-server to 3.4.1 ([@beardedpayton](https://github.com/beardedpayton))
44+
* `@vue/babel-preset-app`
45+
* [#3978](https://github.com/vuejs/vue-cli/pull/3978) bump jsx dependency version ([@LinusBorg](https://github.com/LinusBorg))
46+
47+
#### Committers: 9
48+
- Francisco ([@svtfrancisco](https://github.com/svtfrancisco))
49+
- Guillaume Chau ([@Akryum](https://github.com/Akryum))
50+
- Haoqun Jiang ([@sodatea](https://github.com/sodatea))
51+
- James George ([@jamesgeorge007](https://github.com/jamesgeorge007))
52+
- Luiz Victor Linhares Rocha ([@BigsonLvrocha](https://github.com/BigsonLvrocha))
53+
- Payton Burdette ([@beardedpayton](https://github.com/beardedpayton))
54+
- Thorsten Lünborg ([@LinusBorg](https://github.com/LinusBorg))
55+
- [@achretien](https://github.com/achretien)
56+
- maple ([@maple3142](https://github.com/maple3142))
57+
58+
59+
60+
## 4.0.0-alpha.0 (2019-05-01)
61+
62+
#### :boom: Breaking Changes
63+
64+
* `@vue/cli-service`, `@vue/cli`
65+
* [#3921](https://github.com/vuejs/vue-cli/pull/3921) **generator/preset**: default to dart sass for `sass` option of `cssPreprocessor` ([@sodatea](https://github.com/sodatea))
66+
* `@vue/cli-service`
67+
* [#3918](https://github.com/vuejs/vue-cli/pull/3918) upgrade to copy-webpack-plugin v5 ([@sodatea](https://github.com/sodatea))
68+
* [#3913](https://github.com/vuejs/vue-cli/pull/3913) upgrade to webpack-chain v5 ([@sodatea](https://github.com/sodatea))
69+
* [#3866](https://github.com/vuejs/vue-cli/pull/3866) upgrade css-loader to v2 ([@sodatea](https://github.com/sodatea))
70+
* [#3863](https://github.com/vuejs/vue-cli/pull/3863) enable splitChunks by default even in development mode ([@sodatea](https://github.com/sodatea))
71+
* [#3853](https://github.com/vuejs/vue-cli/pull/3853) set `whitespace: 'condense'` for template compiler ([@sodatea](https://github.com/sodatea))
72+
* [#3782](https://github.com/vuejs/vue-cli/pull/3782) use EnvironmentPlugin instead of DefinePlugin for `process.env.*` vars ([@sodatea](https://github.com/sodatea))
73+
* `@vue/babel-preset-app`, `@vue/cli-plugin-babel`
74+
* [#3912](https://github.com/vuejs/vue-cli/pull/3912) upgrade to core-js v3 ([@sodatea](https://github.com/sodatea))
75+
* `@vue/cli-plugin-eslint`
76+
* [#3852](https://github.com/vuejs/vue-cli/pull/3852) require ESLint as a peer dependency ([@sodatea](https://github.com/sodatea))
77+
* `@vue/cli-plugin-eslint`, `@vue/cli-service-global`
78+
* [#3775](https://github.com/vuejs/vue-cli/pull/3775) use ESLint v5 by default everywhere ([@sodatea](https://github.com/sodatea))
79+
* `@vue/cli-plugin-pwa`
80+
* [#3915](https://github.com/vuejs/vue-cli/pull/3915) upgrade to workbox v4 ([@sodatea](https://github.com/sodatea))
81+
* [#2981](https://github.com/vuejs/vue-cli/pull/2981) manifest.json should be generated by cli-plugin-pwa ([@aweikalee](https://github.com/aweikalee))
82+
* `@vue/cli-plugin-e2e-nightwatch`
83+
* [#3388](https://github.com/vuejs/vue-cli/pull/3388) upgrade to nightwatch v1 ([@darrenjennings](https://github.com/darrenjennings))
84+
* [#3916](https://github.com/vuejs/vue-cli/pull/3916) upgrade to chromedriver v74 and make it a peer dependency ([@sodatea](https://github.com/sodatea))
85+
* [#3774](https://github.com/vuejs/vue-cli/pull/3774) remove support for legacy `vue-cli-service e2e` command ([@sodatea](https://github.com/sodatea))
86+
* `@vue/cli-plugin-unit-jest`
87+
* [#3870](https://github.com/vuejs/vue-cli/pull/3870) upgrade to jest v24 ([@sodatea](https://github.com/sodatea))
88+
* `@vue/cli-plugin-unit-mocha`
89+
* [#3914](https://github.com/vuejs/vue-cli/pull/3914) upgrade to mocha 6 and use mochapack instead of mocha-webpack ([@sodatea](https://github.com/sodatea))
90+
91+
#### Committers: 3
92+
- Darren Jennings ([@darrenjennings](https://github.com/darrenjennings))
93+
- Haoqun Jiang ([@sodatea](https://github.com/sodatea))
94+
- 毛呆 ([@aweikalee](https://github.com/aweikalee))
95+
96+
97+
## 3.8.4 (2019-06-15)
98+
99+
#### :bug: Bug Fix
100+
* `@vue/cli`
101+
* [#4148](https://github.com/vuejs/vue-cli/pull/4148) fix: fix config merging during `vue invoke` in Node.js v12 ([@sodatea](https://github.com/sodatea))
102+
* `@vue/cli-service`
103+
* [#4150](https://github.com/vuejs/vue-cli/pull/4150) chore: upgrade default-gateway to 5.0.2 ([@zrh122](https://github.com/zrh122))
104+
105+
#### Committers: 2
106+
- Haoqun Jiang ([@sodatea](https://github.com/sodatea))
107+
- [@zrh122](https://github.com/zrh122)
108+
109+
110+
## 3.8.3 (2019-06-13)
111+
112+
#### :bug: Bug Fix
113+
* `@vue/cli-service`
114+
* [#4079](https://github.com/vuejs/vue-cli/pull/4079) fix: avoid opening browser twice ([@xovel](https://github.com/xovel))
115+
* [#4083](https://github.com/vuejs/vue-cli/pull/4083) fix: display correct address when multiple network adapters present ([@sodatea](https://github.com/sodatea))
116+
* [#4095](https://github.com/vuejs/vue-cli/pull/4095) fix: fix resolve project local plugin's file path ([@sodatea](https://github.com/sodatea))
117+
* `@vue/cli-ui`
118+
* [1ff22d2](https://github.com/vuejs/vue-cli/commit/1ff22d2a51bfd62f851a8baae2027ae5e18488ea) fix: keep double quotes in script command ([@Akryum](https://github.com/Akryum))
119+
120+
121+
#### :memo: Documentation
122+
* [#3924](https://github.com/vuejs/vue-cli/pull/3924) docs: add more explanation at prompts ([@kazupon](https://github.com/kazupon))
123+
124+
#### Committers: 2
125+
- Guillaume Chau ([@Akryum](https://github.com/Akryum))
126+
- Haoqun Jiang ([@sodatea](https://github.com/sodatea))
127+
- kazuya kawaguchi ([@kazupon](https://github.com/kazupon))
128+
- Sanapoint 顼轩 ([@xovel](https://github.com/xovel))
129+
130+
131+
## 3.8.2 (2019-05-26)
132+
133+
#### :bug: Bug Fix
134+
* `@vue/cli`
135+
* [3c5bd30](https://github.com/vuejs/vue-cli/commit/3c5bd30827ead4a34ead19f49d2d33683fc6ad44) fixes update checking ([@sodatea](https://github.com/sodatea))
136+
137+
#### Committers: 1
138+
- Haoqun Jiang ([@sodatea](https://github.com/sodatea))
139+
140+
141+
## 3.8.1 (2019-05-26)
142+
143+
#### :bug: Bug Fix
144+
* `@vue/cli-plugin-typescript`
145+
* [19d50b9](https://github.com/vuejs/vue-cli/commit/19d50b9ea500e6779e2e27369b2efb328488be75) revert [the accidentally introduced breaking change](https://github.com/vuejs/vue-cli/pull/3909) ([@sodatea](https://github.com/sodatea))
146+
147+
#### Committers: 1
148+
- Haoqun Jiang ([@sodatea](https://github.com/sodatea))
149+
150+
151+
## 3.8.0 (2019-05-25)
152+
153+
#### :rocket: New Features
154+
* `@vue/cli-plugin-pwa`, `@vue/cli-ui`
155+
* [#3939](https://github.com/vuejs/vue-cli/pull/3939) add 'manifestCrossorigin' option ([@BigsonLvrocha](https://github.com/BigsonLvrocha))
156+
* `@vue/cli-ui`
157+
* [#3929](https://github.com/vuejs/vue-cli/pull/3929) add support for inquirer type `editor` ([@Akryum](https://github.com/Akryum))
158+
* [#3955](https://github.com/vuejs/vue-cli/pull/3955) allow rename (nickname) a project ([@Akryum](https://github.com/Akryum))
159+
* `@vue/cli-service`
160+
* [#4011](https://github.com/vuejs/vue-cli/pull/4011) enable HMR when extracting CSS in dev ([@achretien](https://github.com/achretien))
161+
* `@vue/cli`
162+
* [#3860](https://github.com/vuejs/vue-cli/pull/3860) suggest matching commands if the user mistypes ([@jamesgeorge007](https://github.com/jamesgeorge007))
163+
164+
#### :boom: Breaking Changes
165+
<del>* `@vue/cli-plugin-typescript`</del>
166+
* <del>[#3909](https://github.com/vuejs/vue-cli/pull/3909) prefer .tsx? files over .jsx? file extensions ([@LinusBorg](https://github.com/LinusBorg))</del> (Reverted in v3.8.1)
167+
168+
169+
#### :bug: Bug Fix
170+
* `@vue/cli-service`
171+
* [#4034](https://github.com/vuejs/vue-cli/pull/4034) fix bundles' compatibility with workers for those built in development mode ([@sodatea](https://github.com/sodatea))
172+
* `@vue/cli-ui`
173+
* [#3992](https://github.com/vuejs/vue-cli/pull/3992) update dependencies and fix peer dependency warnings ([@sodatea](https://github.com/sodatea))
174+
* [#3966](https://github.com/vuejs/vue-cli/pull/3966) fix `detectLanguage` function ([@maple3142](https://github.com/maple3142))
175+
176+
#### :memo: Documentation
177+
* `@vue/cli-plugin-typescript`, `@vue/cli`
178+
* [#4046](https://github.com/vuejs/vue-cli/pull/4046) add description of babel plugin usage in TS plugin prompt ([@sodatea](https://github.com/sodatea))
179+
180+
#### :house: Internal
181+
* `@vue/cli-service`
182+
* [#4018](https://github.com/vuejs/vue-cli/pull/4018) set `clientLogLevel` to `silent` instead of `none` ([@svtfrancisco](https://github.com/svtfrancisco))
183+
* `@vue/cli`
184+
* [#4003](https://github.com/vuejs/vue-cli/pull/4003) refactor: replace recast with jscodeshift for `injectImportsAndOptions`, fixes [#3309](https://github.com/vuejs/vue-cli/issues/3309) ([@sodatea](https://github.com/sodatea))
185+
186+
#### :hammer: Underlying Tools
187+
* `@vue/cli-service`
188+
* [#4020](https://github.com/vuejs/vue-cli/pull/4020) upgrade webpack-dev-server to 3.4.1 ([@beardedpayton](https://github.com/beardedpayton))
189+
* `@vue/babel-preset-app`
190+
* [#3978](https://github.com/vuejs/vue-cli/pull/3978) bump jsx dependency version ([@LinusBorg](https://github.com/LinusBorg))
191+
192+
#### Committers: 9
193+
- Francisco ([@svtfrancisco](https://github.com/svtfrancisco))
194+
- Guillaume Chau ([@Akryum](https://github.com/Akryum))
195+
- Haoqun Jiang ([@sodatea](https://github.com/sodatea))
196+
- James George ([@jamesgeorge007](https://github.com/jamesgeorge007))
197+
- Luiz Victor Linhares Rocha ([@BigsonLvrocha](https://github.com/BigsonLvrocha))
198+
- Payton Burdette ([@beardedpayton](https://github.com/beardedpayton))
199+
- Thorsten Lünborg ([@LinusBorg](https://github.com/LinusBorg))
200+
- [@achretien](https://github.com/achretien)
201+
- maple ([@maple3142](https://github.com/maple3142))
202+
203+
2204
## 3.7.0 (2019-04-28)
3205

4-
#### :rocket: New Feature
206+
#### :rocket: New Features
5207
* `@vue/cli-service`
6208
* [#3861](https://github.com/vuejs/vue-cli/pull/3861) feat: add `.version` field and `assertVersion` helper to plugin api ([@sodatea](https://github.com/sodatea))
7209
* [#3847](https://github.com/vuejs/vue-cli/pull/3847) feat: add types for new `lintOnSave` options and multi-page entries ([@sodatea](https://github.com/sodatea))
@@ -59,7 +261,7 @@
59261
* `@vue/cli-ui`
60262
* [022e17d](https://github.com/vuejs/vue-cli/commit/022e17da5725742b0f425c0976b090bd1ce6581f) `--dev` shouldn't try to load dev assets, closes #3802 ([@Akryum](https://github.com/Akryum))
61263

62-
#### :rocket: New Feature
264+
#### :rocket: New Features
63265
* `@vue/cli-ui`
64266
* [bbe4002](https://github.com/vuejs/vue-cli/commit/bbe4002480b46c8ce3721afe1285fea4f7bba3bf) **tasks**: override args switch, closes #3236 ([@Akryum](https://github.com/Akryum))
65267

@@ -87,7 +289,7 @@
87289

88290
## 3.6.0 (2019-04-13)
89291

90-
#### :rocket: New Feature
292+
#### :rocket: New Features
91293
* `@vue/cli-ui`
92294
* [#3688](https://github.com/vuejs/vue-cli/pull/3688) add "copy content to clipboard" button on terminal component ([@pikax](https://github.com/pikax))
93295
* [c81e6c](https://github.com/vuejs/vue-cli/commit/c81e6c21a20d66bfa66a664d94ec3ccc81c54d38) **project create**: bare option ([@Akryum](https://github.com/Akryum))

docs/.vuepress/components/Bit.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<p class="bit-sponsor">
3-
<a href="https://www.bitsrc.io/?utm_source=vue&utm_medium=vue&utm_campaign=vue&utm_term=vue&utm_content=vue" target="_blank">
3+
<a href="https://bit.dev/?utm_source=vue&utm_medium=vue&utm_campaign=vue&utm_term=vue&utm_content=vue" target="_blank">
44
<span>This project is sponsored by</span>
55
<img alt="bit" src="/bit-wide.png">
66
</a>

docs/.vuepress/config.js

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,7 @@ module.exports = {
8383
},
8484
{
8585
text: 'Plugins',
86-
items: [
87-
{ text: 'Babel', link: 'https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-babel' },
88-
{ text: 'TypeScript', link: 'https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-typescript' },
89-
{ text: 'ESLint', link: 'https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-eslint' },
90-
{ text: 'PWA', link: 'https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-pwa' },
91-
{ text: 'Jest', link: 'https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-unit-jest' },
92-
{ text: 'Mocha', link: 'https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-unit-mocha' },
93-
{ text: 'Cypress', link: 'https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-e2e-cypress' },
94-
{ text: 'Nightwatch', link: 'https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-e2e-nightwatch' }
95-
]
86+
link: '/core-plugins/'
9687
},
9788
{
9889
text: 'Changelog',
@@ -147,7 +138,22 @@ module.exports = {
147138
'/dev-guide/ui-localization.md'
148139
]
149140
}
150-
]
141+
],
142+
'/core-plugins/': [{
143+
title: 'Core Vue CLI Plugins',
144+
collapsable: false,
145+
children: [
146+
'/core-plugins/babel.md',
147+
'/core-plugins/typescript.md',
148+
'/core-plugins/eslint.md',
149+
'/core-plugins/pwa.md',
150+
'/core-plugins/unit-jest.md',
151+
'/core-plugins/unit-mocha.md',
152+
'/core-plugins/e2e-cypress.md',
153+
'/core-plugins/e2e-nightwatch.md'
154+
]
155+
}],
156+
151157
}
152158
},
153159
'/zh/': {

docs/config/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ Deprecated since Vue CLI 3.3, please use [`publicPath`](#publicPath) instead.
193193
::: warning Jest config
194194
This option is not respected by the [cli-unit-jest plugin](#jest), because in jest, we don't have to transpile code from `/node_modules` unless it uses non-standard features - Node >8.11 supports the latest ECMAScript features already.
195195

196-
However, jest sometimes has to transform content from node_modules if that code uses ES6 `import`/`export` syntax. In that case, use the `tranformIgnorePatterns` option in `jest.config.js`.
196+
However, jest sometimes has to transform content from node_modules if that code uses ES6 `import`/`export` syntax. In that case, use the `transformIgnorePatterns` option in `jest.config.js`.
197197

198198
See [the plugin's README](https://github.com/vuejs/vue-cli/blob/dev/packages/%40vue/cli-plugin-unit-jest/README.md) for more information.
199199
:::

docs/core-plugins/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Plugins
2+
3+
Vue CLI uses a plugin-based architecture. If you inspect a newly created project's `package.json`, you will find dependencies that start with `@vue/cli-plugin-`. Plugins can modify the internal webpack configuration and inject commands to `vue-cli-service`. Most of the features listed during the project creation process are implemented as plugins.
4+
5+
This section contains documentation for core Vue CLI plugins:
6+
7+
- [Babel](babel.md)
8+
- [TypeScript](typescript.md)
9+
- [ESLint](eslint.md)
10+
- [PWA](pwa.md)
11+
- [Jest](unit-jest.md)
12+
- [Mocha](unit-mocha.md)
13+
- [Cypress](e2e-cypress.md)
14+
- [Nightwatch](e2e-nightwatch.md)

docs/core-plugins/babel.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# @vue/cli-plugin-babel
2+
3+
> babel plugin for vue-cli
4+
5+
## Configuration
6+
7+
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 `babel.config.js` to use any other Babel presets or plugins.
8+
9+
By default, `babel-loader` excludes files inside `node_modules` dependencies. If you wish to explicitly transpile a dependency module, you will need to add it to the `transpileDependencies` option in `vue.config.js`:
10+
11+
``` js
12+
module.exports = {
13+
transpileDependencies: [
14+
// can be string or regex
15+
'my-dep',
16+
/other-dep/
17+
]
18+
}
19+
```
20+
21+
## Caching
22+
23+
[cache-loader](https://github.com/webpack-contrib/cache-loader) is enabled by default and cache is stored in `<projectRoot>/node_modules/.cache/babel-loader`.
24+
25+
## Parallelization
26+
27+
[thread-loader](https://github.com/webpack-contrib/thread-loader) is enabled by default when the machine has more than 1 CPU cores. This can be turned off by setting `parallel: false` in `vue.config.js`.
28+
29+
## Installing in an Already Created Project
30+
31+
``` sh
32+
vue add @vue/babel
33+
```
34+
35+
## Injected webpack-chain Rules
36+
37+
- `config.rule('js')`
38+
- `config.rule('js').use('babel-loader')`
39+
- `config.rule('js').use('cache-loader')`

0 commit comments

Comments
 (0)