Skip to content

Commit 089473a

Browse files
committed
fix: mark @vue/compiler-sfc as an optional peer dependency
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.
1 parent f063863 commit 089473a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

package.json

+5
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@
4040
"@vue/compiler-sfc": "^3.0.8",
4141
"webpack": "^4.1.0 || ^5.0.0-0"
4242
},
43+
"peerDependenciesMeta": {
44+
"@vue/compiler-sfc": {
45+
"optional": true
46+
}
47+
},
4348
"devDependencies": {
4449
"@babel/core": "^7.7.7",
4550
"@babel/preset-env": "^7.11.5",

0 commit comments

Comments
 (0)