Skip to content

Commit 733c810

Browse files
committed
use more idiomatic request stringfication for componentNormalizer
1 parent b8c359c commit 733c810

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/loader.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,9 @@ module.exports = function (content) {
248248
// scopeId,
249249
// cssModules
250250
// )
251-
output += 'var Component = require(' + JSON.stringify(componentNormalizerPath) + ')(\n'
251+
output += 'var Component = require(' +
252+
loaderUtils.stringifyRequest(loaderContext, '!' + componentNormalizerPath) +
253+
')(\n'
252254

253255
// <script>
254256
output += ' /* script */\n '

0 commit comments

Comments
 (0)