9 lines
290 B
JavaScript
9 lines
290 B
JavaScript
/** @type {import("../../../../").LoaderDefinition<{}, { shouldReplace: boolean }>} */
|
|
module.exports = function (source) {
|
|
if (this.shouldReplace) {
|
|
this._module.buildInfo._isReplaced = true;
|
|
return "module.exports = { foo: { foo: 'bar' }, doThings: (v) => v}";
|
|
}
|
|
return source;
|
|
};
|