Skip to content

Commit

Permalink
fix(sourcemap): use src as the sourceroot for sourcemaps
Browse files Browse the repository at this point in the history
fixes #539
  • Loading branch information
JeroenVinke committed Apr 2, 2017
1 parent 84952de commit 87ca276
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/resources/content/babelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"sourceMap": true,
"sourceRoot": "src",
"moduleIds": false,
"comments": false,
"compact": false,
Expand Down
1 change: 1 addition & 0 deletions lib/resources/tasks/transpile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ function buildTypeScript() {
.pipe(plumber({ errorHandler: notify.onError('Error: <%= error.message %>') }))
.pipe(sourcemaps.init())
.pipe(typescriptCompiler())
.pipe(sourcemaps.write({ sourceRoot: 'src' }))
.pipe(build.bundle());
}

Expand Down

0 comments on commit 87ca276

Please sign in to comment.