@@ -344,9 +344,9 @@ module.exports = function (content) {
344
344
// check named exports
345
345
output +=
346
346
'if (Component.esModule && Object.keys(Component.esModule).some(function (key) {' +
347
- 'return key !== "default" && key.substr(0, 2) !== "__"' +
347
+ ' return key !== "default" && key.substr(0, 2) !== "__"' +
348
348
'})) {' +
349
- 'console.error("named exports are not supported in *.vue files.")' +
349
+ ' console.error("named exports are not supported in *.vue files.")' +
350
350
'}\n'
351
351
}
352
352
@@ -368,11 +368,9 @@ module.exports = function (content) {
368
368
}
369
369
370
370
output +=
371
- 'var customBlock = ' +
372
- requireString +
373
- '\n' +
371
+ 'var customBlock = ' + requireString + '\n' +
374
372
'if (typeof customBlock === "function") {' +
375
- 'customBlock(Component)' +
373
+ ' customBlock(Component)' +
376
374
'}\n'
377
375
}
378
376
} )
@@ -442,9 +440,7 @@ module.exports = function (content) {
442
440
443
441
function getImport ( type , part , index , scoped ) {
444
442
return (
445
- 'import __vue_' +
446
- type +
447
- '__ from ' +
443
+ 'import __vue_' + type + '__ from ' +
448
444
getRequireString ( type , part , index , scoped )
449
445
)
450
446
}
@@ -469,9 +465,7 @@ module.exports = function (content) {
469
465
470
466
function getImportForImport ( type , impt , scoped ) {
471
467
return (
472
- 'import __vue_' +
473
- type +
474
- '__ from ' +
468
+ 'import __vue_' + type + '__ from ' +
475
469
getRequireForImportString ( type , impt , scoped )
476
470
)
477
471
}
0 commit comments