diff --git a/lib/index.js b/lib/index.js index 7ff308b0d..0d3403747 100644 --- a/lib/index.js +++ b/lib/index.js @@ -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.`