# Migrate from v4
First, install the latest Vue CLI globally:
npm install -g @vue/cli # OR yarn global add @vue/cli
# Upgrade All Plugins at Once
In your existing projects, run:
And then follow the command line instructions.
See the following section for detailed breaking changes introduced in each package.
# One-By-One Manual Migration
If you want to migrate manually and gradually, you can run
vue upgrade <the-plugin-name> to upgrade a specific Vue CLI plugin.
# Breaking Changes
# For All Packages
- Drop support of Node.js 8, 11, 13
- Drop support of NPM 5
vue Command (The Global
Updated several underlying loaders and plugins:
copy-webpack-pluginfrom v5 to v6. If you never customized its config through
config.plugin('copy'), there should be no user-facing breaking changes. A full list of breaking changes is available at https://github.com/webpack-contrib/copy-webpack-plugin/releases/tag/v6.0.0 (opens new window).
file-loaderfrom v4 to v6, and
url-loaderfrom v2 to v4. The
esModuleoption is now turned on by default for non-Vue-2 projects. Full changelog available at https://github.com/webpack-contrib/file-loader/blob/master/CHANGELOG.md (opens new window) and https://github.com/webpack-contrib/url-loader/blob/master/CHANGELOG.md (opens new window)
terser-webpack-pluginfrom v2 to v4, using terser 5 and some there are some changes in the options format. Full changelog at https://github.com/webpack-contrib/terser-webpack-plugin/blob/master/CHANGELOG.md (opens new window)
# ESLint Plugin
eslint-loaderis upgraded from v2 to v4 (opens new window). The only major change is that it dropped support for ESLint < v6.
# TypeScript Plugin
- Dropped TSLint support. As TSLint has been deprecated (opens new window), we removed (opens new window) all TSLint-related code in this version.
Please consider switching to ESLint. You can check out
tslint-to-eslint-config(opens new window) for a mostly automatic migration experience.
ts-loaderfrom v6 to v8. It now only supports TypeScript >= 3.6.
fork-ts-checker-webpack-pluginfrom v3.x to v5.x, you can see the detailed breaking changes at https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/releases/tag/v4.0.0 (opens new window) and https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/releases/tag/v5.0.0 (opens new window)
# E2E-Cypress Plugin
- Cypress is updated from v3 to v5. See https://docs.cypress.io/guides/references/migration-guide.html (opens new window) for a detailed migration guide.
# Unit-Mocha Plugin
mochafrom v6 to v7, please refer to the release notes of mocha v7 (opens new window) for a complete list of breaking changes.
jsdomfrom v15 to v16, the breaking changes are listed at https://github.com/jsdom/jsdom/releases/tag/16.0.0 (opens new window)
# Internal Packages
- Bump chalk (opens new window) from v2 to v4