File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -12,14 +12,17 @@ const genCustomBlocksCode = require('./codegen/customBlocks')
12
12
const componentNormalizerPath = require . resolve ( './runtime/componentNormalizer' )
13
13
const { NS } = require ( './plugin' )
14
14
15
+ let errorEmitted = false
16
+
15
17
module . exports = function ( source ) {
16
18
const loaderContext = this
17
19
18
- if ( ! loaderContext [ 'thread-loader' ] && ! loaderContext [ NS ] ) {
20
+ if ( ! errorEmitted && ! loaderContext [ 'thread-loader' ] && ! loaderContext [ NS ] ) {
19
21
loaderContext . emitError ( new Error (
20
22
`vue-loader was used without the corresponding plugin. ` +
21
23
`Make sure to include VueLoaderPlugin in your webpack config.`
22
24
) )
25
+ errorEmitted = true
23
26
}
24
27
25
28
const stringifyRequest = r => loaderUtils . stringifyRequest ( loaderContext , r )
You can’t perform that action at this time.
0 commit comments