Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: redesigns
vue upgrade
, supports code migration (#4090)
- Loading branch information
Showing
29 changed files
with
619 additions
and
304 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
const { chalk } = require('@vue/cli-shared-utils') | ||
|
||
module.exports = (api) => { | ||
// TODO: backport this part to v3 | ||
// if (api.fromVersion('<=3.5.3')) { | ||
// // add core-js@2 as dependency | ||
// api.extendPackage({ | ||
// dependencies: { | ||
// 'core-js': '^2.6.5' | ||
// } | ||
// }) | ||
// } | ||
|
||
if (api.fromVersion('^3')) { | ||
api.extendPackage({ | ||
dependencies: { | ||
'core-js': '^3.1.2' | ||
} | ||
}, true) | ||
|
||
// TODO: implement a codemod to migrate polyfills | ||
api.exitLog(`core-js has been upgraded from v2 to v3. | ||
If you have any custom polyfills defined in ${chalk.yellow('babael.config.js')}, please be aware their names may have been changed. | ||
For more complete changelog, see https://github.com/zloirock/core-js/blob/master/CHANGELOG.md#300---20190319`) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,4 @@ | |
|
||
exports.chalk = require('chalk') | ||
exports.execa = require('execa') | ||
exports.semver = require('semver') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.