• File: SelfModuleFactory.js
  • Full Path: /var/www/paytek-africa.com/node_modules/webpack/lib/SelfModuleFactory.js
  • Date Modified: 07/19/2022 5:05 PM
  • File size: 384 bytes
  • MIME-type: text/plain
  • Charset: utf-8
/*
	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;