Skip to content

Commit

Permalink
fix(sourcemaps): strip path from bundle sourcemap
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Taran authored Feb 25, 2019
1 parent aa816d3 commit 8601622
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/build/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ exports.Bundle = class {
.setProperty('sourceRoot', mapSourceRoot)
.toJSON();

contents += os.EOL + '//# sourceMappingURL=' + mapFileName;
contents += os.EOL + '//# sourceMappingURL=' + path.basename(mapFileName);
}

return fs.writeFile(path.posix.join(platform.output, bundleFileName), contents).then(() => {
Expand Down

0 comments on commit 8601622

Please sign in to comment.