Skip to content

Commit

Permalink
fix: ignore VueLoaderPlugin check when using thread-loader (#1268)
Browse files Browse the repository at this point in the history
close #1267
  • Loading branch information
clarkdo authored and yyx990803 committed Apr 30, 2018
1 parent 9216612 commit 476f466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const { NS } = require('./plugin')
module.exports = function (source) {
const loaderContext = this

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

0 comments on commit 476f466

Please sign in to comment.