Skip to content

Commit

Permalink
update: patch code optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
hemengke1997 committed Apr 28, 2024
1 parent 929ec1c commit 02b32a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions patches/vite-plugin-istanbul@6.0.0.patch
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ index e552163df832aa02286da63d90b6a83dfd3fc392..cbd46bddd202e4a329bea55ae3f93ab3
const combinedSourceMap = sanitizeSourceMap(
this.getCombinedSourcemap()
);
+ combinedSourceMap.sources.forEach((_, index) => {
+ combinedSourceMap.sources[index] = combinedSourceMap.sources[index].replace(/\?.*$/, '');
+ combinedSourceMap.sources.forEach((code, index) => {
+ combinedSourceMap.sources[index] = code.replace(/\?.*$/, '');
+ })
const code = instrumenter.instrumentSync(
srcCode,
Expand All @@ -21,7 +21,7 @@ index 34e886906b6527286eae6978ce6e73bde396470f..b7bb82857dcd59eabc48271f1316bbc9
this.getCombinedSourcemap()
);
+ combinedSourceMap.sources.forEach((_, index) => {
+ combinedSourceMap.sources[index] = combinedSourceMap.sources[index].replace(/\?.*$/, '');
+ combinedSourceMap.sources[index] = code.replace(/\?.*$/, '');
+ })
const code = instrumenter.instrumentSync(
srcCode,
Expand Down

0 comments on commit 02b32a7

Please sign in to comment.