Skip to content

Commit

Permalink
fix: make sourcemap base prefix relative to the build file instead of…
Browse files Browse the repository at this point in the history
… default "../" (fixes #1253)
  • Loading branch information
iamstarkov committed Feb 16, 2025
1 parent 93b36f5 commit 2464f3d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ async function runCmd (argv, stdout, stderr) {
externals: args["--external"],
sourceMap: args["--source-map"] || run,
sourceMapRegister: args["--no-source-map-register"] ? false : undefined,
sourceMapBasePrefix: path.relative(outDir, buildFile),
assetBuilds: args["--asset-builds"] ? true : false,
cache: args["--no-cache"] ? false : undefined,
watch: args["--watch"],
Expand Down

0 comments on commit 2464f3d

Please sign in to comment.