mirror of https://github.com/webpack/webpack.git
11 lines
302 B
JavaScript
11 lines
302 B
JavaScript
|
const path = require("path");
|
||
|
|
||
|
/** @type {import("../../../../").LoaderDefinition} */
|
||
|
module.exports = function () {
|
||
|
const callback = this.async();
|
||
|
|
||
|
this.resolve(this.context, "./b.js", (err, result, request) => {
|
||
|
callback(err, `module.exports = ${JSON.stringify(path.basename(result))};`)
|
||
|
});
|
||
|
};
|