8000 fix needmap · rspack-contrib/rspack-vue-loader@fc68522 · GitHub
[go: up one dir, main page]

Skip to content

Commit fc68522 8000

Browse files
committed
fix needmap
1 parent d32ac75 commit fc68522

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ module.exports = function (content) {
135135
}
136136
}
137137

138-
var parts = parse(content, fileName)
138+
var parts = parse(content, fileName, this.sourceMap)
139139
var hasLocalStyles = false
140140
var output = 'var __vue_script__, __vue_template__\n'
141141

lib/parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var commentSymbols = {
1414
'ulmus': '--'
1515
}
1616

17-
module.exports = function (content, filename) {
17+
module.exports = function (content, filename, needMap) {
1818

1919
var cacheKey = hash(filename + content)
2020
// source-map cache busting for hot-reloadded modules

lib/selector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = function (content) {
66
this.cacheable()
77
var query = loaderUtils.parseQuery(this.query)
88
var filename = path.basename(this.resourcePath)
9-
var parts = parse(content, filename)
9+
var parts = parse(content, filename, this.sourceMap)
1010
var part = parts[query.type][query.index]
1111
this.callback(null, part.content, part.map)
1212
}

0 commit comments

Comments
 (0)
0