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

Commit bb9d84a

Browse files
committed
Abort on error
1 parent e2cf597 commit bb9d84a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ module.exports = function(input) {
3131

3232
// mock async step 2 - offer css loader a "fake" callback
3333
this.async = () => (err, content) => {
34+
if (err) {
35+
return callback(err);
36+
}
3437
const filename = this.resourcePath;
3538
const cssModuleInterfaceFilename = filenameToTypingsFilename(filename);
3639

0 commit comments

Comments
 (0)