12 lines
300 B
JavaScript
12 lines
300 B
JavaScript
/** @type {import("../../../../").LoaderDefinition} */
|
|
module.exports = function (source) {
|
|
const empty = null;
|
|
const emptyError = new Error();
|
|
this.emitWarning(empty);
|
|
this.emitWarning(emptyError);
|
|
this.emitError(empty);
|
|
this.emitError(emptyError);
|
|
throw "a string error";
|
|
return source;
|
|
};
|