8000 pass in filename for sourcemap · rspack-contrib/rspack-vue-loader@c6d2827 · GitHub
[go: up one dir, main page]

Skip to content

Commit c6d2827

Browse files
committed
pass in filename for sourcemap
1 parent 4dfef0e commit c6d2827

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/parser.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ module.exports = function (content, filename, needMap) {
1010
if (output) return output
1111
output = compiler.parseComponent(content, {
1212
pad: true,
13-
map: true
13+
map: needMap
14+
? { filename: filenameWithHash }
15+
: false
1416
})
1517
cache.set(cacheKey, output)
1618
return output

0 commit comments

Comments
 (0)
0