Skip to content

Commit

Permalink
Merge pull request #77 from tsufiev/master
Browse files Browse the repository at this point in the history
Pass inputSourceMap to the next loader in chain
  • Loading branch information
Yeti-or authored Apr 2, 2018
2 parents 2293096 + 0074a7a commit a8cc032
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const path = require('path'),
loaderUtils = require('loader-utils'),
getGenerators = require('./generators');

module.exports = function(source) {
module.exports = function(source, inputSourceMap) {
this.cacheable && this.cacheable();

const callback = this.async(),
Expand Down Expand Up @@ -159,6 +159,6 @@ module.exports = function(source) {
});

Promise.all(allPromises)
.then(() => callback(null, result.toString()))
.then(() => callback(null, result.toString(), inputSourceMap))
.catch(callback);
};

0 comments on commit a8cc032

Please sign in to comment.