We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1023cd commit 0b006a3Copy full SHA for 0b006a3
lib/index.js
@@ -12,14 +12,17 @@ const genCustomBlocksCode = require('./codegen/customBlocks')
12
const componentNormalizerPath = require.resolve('./runtime/componentNormalizer')
13
const { NS } = require('./plugin')
14
15
+let errorEmitted = false
16
+
17
module.exports = function (source) {
18
const loaderContext = this
19
- if (!loaderContext['thread-loader'] && !loaderContext[NS]) {
20
+ if (!errorEmitted && !loaderContext['thread-loader'] && !loaderContext[NS]) {
21
loaderContext.emitError(new Error(
22
`vue-loader was used without the corresponding plugin. ` +
23
`Make sure to include VueLoaderPlugin in your webpack config.`
24
))
25
+ errorEmitted = true
26
}
27
28
const stringifyRequest = r => loaderUtils.stringifyRequest(loaderContext, r)
0 commit comments