Closed
Description
- Development branch: dev, and will be merged to next on each pre-release.
- Documentation: https://next.cli.vuejs.org/migrations/migrate-from-v4.html
Here are the rough ideas:
Major Dependency Upgrades
- Webpack 5 (also allows to opt-out to webpack 4), feat!: support and use webpack 5 as default #6060
- HTML Webpack Plugin 4
- Cypress 6, would be a peer dependency
- Workbox 6
- Jest 26
- Mocha 8
- ESLint 7
- Other necessary major dependency version bumps, including various webpack loaders and plugins
Planned New Features
- Performance
- Now that we use webpack 5 by default, we can utilize its persistent cache to have a better compilation performance.
- Predicatibility
AThe--transpile-all
CLI flag to includenode_modules
for transpiration, as a fail-safe for thetranspileDependencies
option.transpileDependencies
option can be set totrue
to transpile all dependencies innode_modules
. It should be the recommended way to build your app, especially when you are using webpack 5, as the compilation overhead should be tolerable with the persistent cache.
- Modern mode
- Enabled by default, with additional
modern-only
andno-modern
CLI options - A separate
polyfills
chunk by default - Better
browserslist
integration. For example,safari-no-module-fix
can be dropped whenbrowserslist
config does not target those buggy browsers.
- Enabled by default, with additional
- Configuration
- Async config loading
Changed Behaviors
-
vue serve/build
will be an alias ofnpm run serve/build
. If an entry is designated and nopackage.json
found, it’ll prompt to usevite
(Vue 3) orparcel
(Vue 2) for instant prototyping instead.
Dropped Features
- Drop support of Node.js 8, 11, 13
- Drop support of TSLint
- Drop support of
node-sass
- Drop support of extension-less Vue SFC imports
- Do not allow creating projects with uppercase names even in Vue CLI UI.
Other Breaking Changes Under Consideration
Metadata
Metadata
Assignees
Labels
No labels