Skip to content

Commit

Permalink
chore: Try to simplify the sourcemap path
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed Dec 26, 2023
1 parent ab82e15 commit 591df59
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xmcl-electron-app/sourcemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ function CallSiteToString(this: any) {
}
}
}
if (fileLocation.startsWith('node:internal')) {
fileLocation = fileLocation.replace('node:internal', 'internal')
}

let line = ''
const functionName = this.getFunctionName()
Expand Down Expand Up @@ -82,7 +85,7 @@ function CallSiteToString(this: any) {
}

const buildNumber = process.env.BUILD_NUMBER
const url = `https://client.xmcl.app/${buildNumber}`
const url = `/${buildNumber}`

const wrapCallSite = (frame: any) => {
if (frame.isNative()) return frame
Expand Down

0 comments on commit 591df59

Please sign in to comment.