Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ export function pitch(request) {
};
});
}
if(typeof this[MODULE_TYPE] !== "function") {
return callback(new Error("It seems you are using the loader but forgot to register the plugin"));
}
this[MODULE_TYPE](text);
} catch (e) {
return callback(e);
Expand Down