Skip to content

Commit

Permalink
only return sourceMap if necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Mar 14, 2018
1 parent c95fd10 commit 88f7aff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export default (options = {}) => {

return {
code,
map: concat.sourceMap,
map: sourceMap === true && concat.sourceMap,
codeFilePath: filepath,
mapFilePath: filepath + '.map'
}
Expand Down

0 comments on commit 88f7aff

Please sign in to comment.