Skip to content

Commit

Permalink
chore: build stacktracey
Browse files Browse the repository at this point in the history
  • Loading branch information
StrivingRabbit committed Jan 18, 2025
1 parent c21b6bc commit e7671e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/uni-stacktracey/dist/uni-stacktracey.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2842,6 +2842,9 @@ function uniStracktraceyPreset(opts) {
if (baseAfter && !!fileRelative.match(/^\w/))
baseAfter += '/';
}
if (!baseAfter.length) {
return path__default.default.join(base, fileRelative) + '.map';
}
return `${base}${baseAfter}${fileRelative}.map`;
},
getSourceMapContent(file, fileName, fileRelative) {
Expand Down
3 changes: 3 additions & 0 deletions packages/uni-stacktracey/dist/uni-stacktracey.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -2837,6 +2837,9 @@ function uniStracktraceyPreset(opts) {
if (baseAfter && !!fileRelative.match(/^\w/))
baseAfter += '/';
}
if (!baseAfter.length) {
return path.join(base, fileRelative) + '.map';
}
return `${base}${baseAfter}${fileRelative}.map`;
},
getSourceMapContent(file, fileName, fileRelative) {
Expand Down

0 comments on commit e7671e2

Please sign in to comment.