Skip to content

Commit

Permalink
fix(build): add sourceRoot to sourcemaps. Fixes #5319. (#5323)
Browse files Browse the repository at this point in the history
  • Loading branch information
edeustace authored and arcanis committed Feb 20, 2018
1 parent a98ea3f commit 204f2f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const build = (lib, opts) =>
.pipe(newer(lib))
.pipe(gulpif(argv.sourcemaps, sourcemaps.init()))
.pipe(babel(opts))
.pipe(gulpif(argv.sourcemaps, sourcemaps.write('.')))
.pipe(gulpif(argv.sourcemaps, sourcemaps.write('.', {sourceRoot: '../src'})))
.pipe(gulp.dest(lib));

gulp.task('default', ['build']);
Expand Down

0 comments on commit 204f2f6

Please sign in to comment.