We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
babel
Learn more about funding links in repositories.
Report abuse
1 parent d280ee3 commit e341bbeCopy full SHA for e341bbe
src/index.js
@@ -53,7 +53,10 @@ function makeLoader(callback) {
53
54
async function loader(source, inputSourceMap, overrides) {
55
const filename = this.resourcePath;
56
- const logger = this.getLogger("babel-loader");
+ const logger =
57
+ typeof this.getLogger === "function"
58
+ ? this.getLogger("babel-loader")
59
+ : { debug: () => {} };
60
61
let loaderOptions = this.getOptions();
62
validateOptions(schema, loaderOptions, {
0 commit comments