Skip to content

Commit 37fbaeb

Browse files
meowtecyyx990803
authored andcommitted
fix: check loader for cnpm(npminstall) (#1321)
1 parent 964423d commit 37fbaeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/plugin.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class VueLoaderPlugin {
5353
const vueUse = vueRule.use
5454
// get vue-loader options
5555
const vueLoaderUseIndex = vueUse.findIndex(u => {
56-
return /^vue-loader|(\/|\\)vue-loader/.test(u.loader)
56+
return /^vue-loader|(\/|\\|@)vue-loader/.test(u.loader)
5757
})
5858

5959
if (vueLoaderUseIndex < 0) {

0 commit comments

Comments
 (0)