Skip to content

Commit cb740dc

Browse files
committed
fix: remove inline sourceMap in vue2 setup scripts
1 parent 26b9cf1 commit cb740dc

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

packages/vue2-jest/lib/process.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ function processScriptSetup(descriptor, filePath, config) {
6060
)
6161

6262
const result = transformer.process(content.content, filePath, config)
63+
result.code = stripInlineSourceMap(result.code)
6364
result.map = mapLines(contentMap, result.map)
6465

6566
return result
@@ -158,16 +159,6 @@ module.exports = function(src, filename, config) {
158159
filename
159160
)
160161

161-
const map = generateSourceMap(
162-
scriptResult,
163-
scriptSetupResult,
164-
src,
165-
filename,
166-
output.renderFnStartLine,
167-
output.renderFnEndLine,
168-
templateLine
169-
).toJSON()
170-
171162
return {
172163
code: output.code,
173164
map

0 commit comments

Comments
 (0)