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

Commit 2e2c073

Browse files
committed
Fix crashes in path for !moduleMode
1 parent bf809cb commit 2e2c073

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ module.exports = function(input) {
2525
const query = loaderUtils.parseQuery(this.query);
2626
const moduleMode = query.modules || query.module;
2727
if (!moduleMode) {
28-
console.warn('Typings for CSS-Modules: option `modules` is not active - skipping extraction work...').red;
29-
return delegateToCssLoader(ctx, input, callback);
28+
console.warn('Typings for CSS-Modules: option `modules` is not active - skipping extraction work...'.red);
29+
return delegateToCssLoader(this, input, callback);
3030
}
3131

3232
// mock async step 2 - offer css loader a "fake" callback

0 commit comments

Comments
 (0)