File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -310,13 +310,13 @@ module.exports = function (content) {
310310 ' }\n' +
311311 '})()}\n'
312312 }
313- // check functional
313+ // check functional components used with templates
314314 if ( ! isProduction ) {
315315 output +=
316- 'if (__vue_options__.functional) {console.error(" ' +
317- '[vue-loader] ' + fileName + ': functional components are not ' +
318- 'supported and should be defined in plain js files using render ' +
319- 'functions.' +
316+ 'if (__vue_options__.functional && typeof __vue_template__ !== "undefined" ) {' +
317+ 'console.error(" ' +
318+ `[vue-loader] ${ fileName } : functional components are not ` +
319+ 'supported with templates, they should use render functions.' +
320320 '")}\n'
321321 }
322322 // final export
You can’t perform that action at this time.
0 commit comments