From e466ecfddfb7bf5abf52f6499b2d55adf0e105ee Mon Sep 17 00:00:00 2001 From: Clark Du Date: Fri, 27 Apr 2018 23:23:32 +0100 Subject: [PATCH] fix: ignore VueLoaderPlugin check when using thread-loader for now --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.`