From 53707d2c0e44064f681f5cd484df49d45287e90b Mon Sep 17 00:00:00 2001 From: Logan Smyth Date: Tue, 4 Sep 2018 17:37:25 -0700 Subject: [PATCH] Browserify handles file-relative maps fine, so using Babel's default is fine. --- index.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/index.js b/index.js index ee0ce19..e283712 100644 --- a/index.js +++ b/index.js @@ -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;