Skip to content

Commit 53707d2

Browse files
committed
Browserify handles file-relative maps fine, so using Babel's default is fine.
1 parent 947752b commit 53707d2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,10 @@ function normalizeOptions(preconfiguredOpts, transformOpts, filename) {
8686
),
8787
filename: absoluteFilename,
8888

89-
// The default sourcemap path is the path of the file relative to the
90-
// basedir. This should mirror Browserify's internal behavior when
91-
// 'debug' is enabled.
9289
sourceFileName:
9390
sourceMapsAbsolute
9491
? absoluteFilename
95-
: path.relative(basedir, absoluteFilename),
92+
: undefined,
9693
});
9794

9895
return opts;

0 commit comments

Comments
 (0)