Open kierans opened 4 years ago
I've updated the description to recognise that for the particular project I was upgrading it was a library project, so we don't want dependencies like core-js
in the final dist as it's up to the library user/app to provide the necessary runtime modules.
Version
4.1.2
Environment info
Steps to reproduce
vue upgrade --all
core-js
is listed as a dependency not a devDepedency (and the original devDependency ofcore-js
isn't removedWhat is expected?
When the project is generated via
@vue/cli@3.8.4
thedevDependencies
looks like:I would have expected after the upgrade for the dependencies to be listed in
devDependencies
only.What is actually happening?
Package json looks like:
Because the upgrade upgraded the Vue CLI modules, I'm assuming core-js is only needed in the build phase and can safely be put manually back into
devDependencies
. However there may be a bug in how the package.json was updated in the first place.