Commit 476f4660 authored by Clark Du's avatar Clark Du Committed by Evan You

fix: ignore VueLoaderPlugin check when using thread-loader (#1268)

close #1267
parent 9216612e
...@@ -15,7 +15,7 @@ const { NS } = require('./plugin') ...@@ -15,7 +15,7 @@ const { NS } = require('./plugin')
module.exports = function (source) { module.exports = function (source) {
const loaderContext = this const loaderContext = this
if (!loaderContext[NS]) { if (!loaderContext['thread-loader'] && !loaderContext[NS]) {
loaderContext.emitError(new Error( loaderContext.emitError(new Error(
`vue-loader was used without the corresponding plugin. ` + `vue-loader was used without the corresponding plugin. ` +
`Make sure to include VueLoaderPlugin in your webpack config.` `Make sure to include VueLoaderPlugin in your webpack config.`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment