Skip to content

Commit ead854d

Browse files
committed
always use require for compoentNormalizer since it cannot be concatenated
1 parent 7f2fe87 commit ead854d

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

lib/loader.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -438,15 +438,9 @@ module.exports = function (content) {
438438
// scopeId,
439439
// moduleIdentifier (server only)
440440
// )
441-
if (options.esModule) {
442-
output += 'import normalizeComponent from ' +
443-
loaderUtils.stringifyRequest(loaderContext, '!' + componentNormalizerPath) +
444-
'\n'
445-
} else {
446-
output += 'var normalizeComponent = require(' +
447-
loaderUtils.stringifyRequest(loaderContext, '!' + componentNormalizerPath) +
448-
')\n'
449-
}
441+
output += 'var normalizeComponent = require(' +
442+
loaderUtils.stringifyRequest(loaderContext, '!' + componentNormalizerPath) +
443+
')\n'
450444

451445
// <script>
452446
output += '/* script */\n'

0 commit comments

Comments
 (0)