mirror of https://github.com/webpack/webpack.git
9 lines
307 B
JavaScript
9 lines
307 B
JavaScript
/** @type {import("../../../../").LoaderDefinition} */
|
|
module.exports = function () {
|
|
const callback = this.async();
|
|
this.importModule("./module1", { baseUri: "webpack://" }, (err, exports) => {
|
|
if (err) return callback(err);
|
|
callback(null, `module.exports = ${JSON.stringify(exports.url)}`);
|
|
});
|
|
};
|