Skip to content

Commit

Permalink
Browserify handles file-relative maps fine, so using Babel's default …
Browse files Browse the repository at this point in the history
…is fine.
  • Loading branch information
loganfsmyth committed Sep 5, 2018
1 parent 947752b commit 53707d2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,10 @@ function normalizeOptions(preconfiguredOpts, transformOpts, filename) {
),
filename: absoluteFilename,

// The default sourcemap path is the path of the file relative to the
// basedir. This should mirror Browserify's internal behavior when
// 'debug' is enabled.
sourceFileName:
sourceMapsAbsolute
? absoluteFilename
: path.relative(basedir, absoluteFilename),
: undefined,
});

return opts;
Expand Down

0 comments on commit 53707d2

Please sign in to comment.