Notable Changes
Improved Default Babel Preset
We've refactored the defautl babel preset with #4797 and #4777.
If you are experiencing code size bloat with core-js-pure
imports, or encountering obscure errors when adding packages to transpileDependencies
, this release should have fixed these problems for you.
Basic Yarn 2 Support
Great thanks to @arcanis for his help on this feature.
New projects created with the default preset now have proper support for Yarn 2.
You can try it out with the following commands:
yarn global add @vue/cli@next
vue create -d hello-yarn-2
cd hello-yarn-2
yarn policies set-version v2
yarn
yarn add vue-cli-plugin-pnp -D
yarn serve
We are still working on making the entire CLI work properly under Yarn 2, and hope to support the Plug'n'Play feature in Yarn v1, too, in the near future.
If you have any idea on how to better support these package managers, contributions are more than welcome.
For more information on Yarn 2, here's a great talk about its upcoming new features: https://2019.jsconf.eu/mael-nison/yarn-2019-and-beyond.html
Better Scaffolding Experience for Users in China
CDN URLs of several popular native packages are blocked in China, including the cypress
, chromedriver
and node-sass
package. So we have now added support for mirror URLs of binary packages, following the implementation of the cnpm
package.
Now if you have configured useTaobaoRegistry
, dependency installation during vue create
would be more seamless.
Detailed Changelog
🚀 New Features
@vue/cli
@vue/cli-service
,@vue/cli-ui-addon-webpack
,@vue/cli-ui-addon-widgets
,@vue/cli-ui
,@vue/cli
@vue/cli-plugin-pwa
🐛 Bug Fix
@vue/cli-service
- #4816 fix: don't prepend publicPath with slash (@sodatea)
- #4809 fix: fix build error when path contains space (Closes #4667) (@RSeidelsohn)
@vue/babel-preset-app
@vue/babel-preset-app
,@vue/cli-plugin-babel
,@vue/cli-service
@vue/babel-preset-app
,@vue/cli-plugin-babel
,@vue/cli-plugin-typescript
,@vue/cli-service
,@vue/cli-ui
@vue/cli-shared-utils
- #4842 Replace chalk.reset with stripAnsi in @vue/cli-shared-utils/lib/logger.js (@perakerberg)
@vue/cli
- #4883 fix: support
parser
option for codemods, and enable ts parsing by default (@sodatea) - #4859 fix: invalid version error when modules not installed (@yannbertrand)
- #4883 fix: support
🏠 Internal
@vue/cli-ui
@vue/babel-preset-app
,@vue/cli-plugin-babel
,@vue/cli-service
📝 Documentation
- #4760 Add 'Browse plugins' link to header (@Akryum)
- #4820 Update doc section on Git Hooks (@Codermar)
- #4836 docs: add warnings on CSS sideEffects (@sodatea)
- #4831 Update browser-compatibility.md (@wenhandi)
- #4716 use gitlab CI env variable for project name (@gregoiredx)
- #4803 fix docs
css.loaderOptions.css.localsConvention
(@negibouze) - #4746 Update migrating-from-v3 README typo (@seangwright)
Committers: 15
- Guillaume Chau (@Akryum)
- Haoqun Jiang (@sodatea)
- Jan Van Bruggen (@JanCVanB)
- Maël Nison (@arcanis)
- Roman Seidelsohn (@RSeidelsohn)
- Jose G. Alfonso (@Codermar)
- Per Åkerberg (@perakerberg)
- Sean G. Wright (@seangwright)
- Thomas Kint (@tkint)
- Yann Bertrand (@yannbertrand)
- Yingya Zhang (@zyy7259)
- Yoshiaki Itakura (@negibouze)
- @arnaudvalle
- @gregoiredx
- 文翰弟 (@wenhandi)