Skip to content

Commit

Permalink
fix: mark @vue/compiler-sfc as an optional peer dependency
Browse files Browse the repository at this point in the history
Fixes vuejs/vue-cli#6595
Fixes vuejs/vue-cli#6596

It's not optional actually.

However, in Vue CLI projects for Vue 2, vue-loader v16 is installed but
not used. In that case, the missing peer dependency error should not be
thrown.

There's a dependency check in the entry file anyway.
  • Loading branch information
sodatea committed Jul 21, 2021
1 parent f063863 commit 089473a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions package.json
Expand Up @@ -40,6 +40,11 @@
"@vue/compiler-sfc": "^3.0.8",
"webpack": "^4.1.0 || ^5.0.0-0"
},
"peerDependenciesMeta": {
"@vue/compiler-sfc": {
"optional": true
}
},
"devDependencies": {
"@babel/core": "^7.7.7",
"@babel/preset-env": "^7.11.5",
Expand Down

0 comments on commit 089473a

Please sign in to comment.