Skip to content

Commit 476f466

Browse files
clarkdoyyx990803
authored andcommitted
fix: ignore VueLoaderPlugin check when using thread-loader (#1268)
close #1267
1 parent 9216612 commit 476f466

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const { NS } = require('./plugin')
1515
module.exports = function (source) {
1616
const loaderContext = this
1717

18-
if (!loaderContext[NS]) {
18+
if (!loaderContext['thread-loader'] && !loaderContext[NS]) {
1919
loaderContext.emitError(new Error(
2020
`vue-loader was used without the corresponding plugin. ` +
2121
`Make sure to include VueLoaderPlugin in your webpack config.`

0 commit comments

Comments
 (0)