parcoursup/node_modules/webpack/lib/SelfModuleFactory.js
lalBi94 7bc56c09b5 $
2023-03-05 13:23:23 +01:00

22 lines
384 B
JavaScript

/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
class SelfModuleFactory {
constructor(moduleGraph) {
this.moduleGraph = moduleGraph;
}
create(data, callback) {
const module = this.moduleGraph.getParentModule(data.dependencies[0]);
callback(null, {
module
});
}
}
module.exports = SelfModuleFactory;