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')
1212const componentNormalizerPath = require . resolve ( './runtime/componentNormalizer' )
1313const { NS } = require ( './plugin' )
1414
15+ let errorEmitted = false
16+
1517module . exports = function ( source ) {
1618 const loaderContext = this
1719
18- if ( ! loaderContext [ 'thread-loader' ] && ! loaderContext [ NS ] ) {
20+ if ( ! errorEmitted && ! loaderContext [ 'thread-loader' ] && ! loaderContext [ NS ] ) {
1921 loaderContext . emitError ( new Error (
2022 `vue-loader was used without the corresponding plugin. ` +
2123 `Make sure to include VueLoaderPlugin in your webpack config.`
2224 ) )
25+ errorEmitted = true
2326 }
2427
2528 const stringifyRequest = r => loaderUtils . stringifyRequest ( loaderContext , r )
You can’t perform that action at this time.
0 commit comments