Skip to content
This repository was archived by the owner on Oct 30, 2020. It is now read-only.

Commit 5bf2380

Browse files
authored
Merge pull request #34 from CheeseSucker/fix-sourcemap-bug
Fixed bug where source maps from upstream was discarded
2 parents db3a7fe + 8403ca9 commit 5bf2380

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ import loggerCreator from './logger';
1414

1515
function delegateToCssLoader(ctx, input, callback) {
1616
ctx.async = () => callback;
17-
cssLoader.call(ctx, input);
17+
cssLoader.call(ctx, ...input);
1818
}
1919

20-
module.exports = function(input) {
20+
module.exports = function(...input) {
2121
if(this.cacheable) this.cacheable();
2222

2323
// mock async step 1 - css loader is async, we need to intercept this so we get async ourselves
@@ -71,5 +71,5 @@ ${skippedDefinitions.map(sd => ` - "${sd}"`).join('\n').red}
7171
// mock async step 3 - make `async` return the actual callback again before calling the 'real' css-loader
7272
delegateToCssLoader(this, input, callback);
7373
};
74-
cssLocalsLoader.call(this, input);
74+
cssLocalsLoader.call(this, ...input);
7575
};

0 commit comments

Comments
 (0)