Skip to content

Commit

Permalink
Manually set sourcesContent, fixes #41
Browse files Browse the repository at this point in the history
  • Loading branch information
jnordberg committed Dec 6, 2016
1 parent 93a2368 commit 4287a33
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Expand Up @@ -69,6 +69,7 @@ function compile(filename, source, options, callback) {
var basename = path.basename(filename);
map.setProperty('file', basename.replace(filePattern, '.js'));
map.setProperty('sources', [basename]);
map.setProperty('sourcesContent', [source]);
callback(null, compiled.js + '\n' + map.toComment() + '\n');
} else {
callback(null, compiled + '\n');
Expand Down

0 comments on commit 4287a33

Please sign in to comment.