Skip to content

Commit

Permalink
only generate sourcemaps when necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
erikdesjardins committed Mar 11, 2018
1 parent 8198020 commit a03158e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -77,8 +77,8 @@ module.exports = function(source, sourceMap) {
})
}))
.then(function(bundle) {
return bundle.generate({ format: 'es', sourcemap: true });
})
return bundle.generate({ format: 'es', sourcemap: this.sourceMap });
}.bind(this))
.then(function(result) {
callback(null, result.code, result.map);
}, function(err) {
Expand Down

0 comments on commit a03158e

Please sign in to comment.