Skip to content

Commit 2464f3d

Browse files
committed
fix: make sourcemap base prefix relative to the build file instead of default "../" (fixes #1253)
1 parent 93b36f5 commit 2464f3d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cli.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ async function runCmd (argv, stdout, stderr) {
264264
externals: args["--external"],
265265
sourceMap: args["--source-map"] || run,
266266
sourceMapRegister: args["--no-source-map-register"] ? false : undefined,
267+
sourceMapBasePrefix: path.relative(outDir, buildFile),
267268
assetBuilds: args["--asset-builds"] ? true : false,
268269
cache: args["--no-cache"] ? false : undefined,
269270
watch: args["--watch"],

0 commit comments

Comments
 (0)