Skip to content

Commit

Permalink
Fixes #1305: avoid pointing to missing source maps
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdima committed Sep 19, 2019
1 parent c854d18 commit d3fdf3b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gulpfile.js
Expand Up @@ -317,6 +317,8 @@ function ESM_pluginStream(plugin, destinationPath) {
}
}

contents = contents.replace(/\/\/# sourceMappingURL=.*((\r?\n)|$)/g, '');

data.contents = Buffer.from(contents);
this.emit('data', data);
}))
Expand Down

0 comments on commit d3fdf3b

Please sign in to comment.