Skip to content

Commit

Permalink
Merge pull request #1062 from Alexander-Taran/master
Browse files Browse the repository at this point in the history
fix(sourcemaps): strip path from bundle sourcemap
  • Loading branch information
EisenbergEffect committed Feb 25, 2019
2 parents aa816d3 + 8601622 commit 2494f95
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 2494f95

Please sign in to comment.