Skip to content

Commit f7b545d

Browse files
committed
remove peerDep on @vue/compiler-sfc and use custom check instead
1 parent de920ae commit f7b545d

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Diff for: package.json

-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@
2828
"git add"
2929
]
3030
},
31-
"peerDependencies": {
32-
"@vue/compiler-sfc": "^3.0.0-alpha.0"
33-
},
3431
"dependencies": {
3532
"chalk": "^3.0.0",
3633
"hash-sum": "^2.0.0",

Diff for: src/index.ts

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
try {
2+
require.resolve('@vue/compiler-sfc')
3+
} catch (e) {
4+
throw new Error(
5+
'vue-loader requires @vue/compiler-sfc to be present in the dependency ' +
6+
'tree.'
7+
)
8+
}
9+
110
import * as webpack from 'webpack'
211
import path from 'path'
312
import qs from 'querystring'

0 commit comments

Comments
 (0)