source: trip-planner-front/node_modules/webpack/lib/SelfModuleFactory.js

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 384 bytes
RevLine 
[6a3a178]1/*
2 MIT License http://www.opensource.org/licenses/mit-license.php
3 Author Tobias Koppers @sokra
4*/
5
6"use strict";
7
8class SelfModuleFactory {
9 constructor(moduleGraph) {
10 this.moduleGraph = moduleGraph;
11 }
12
13 create(data, callback) {
14 const module = this.moduleGraph.getParentModule(data.dependencies[0]);
15 callback(null, {
16 module
17 });
18 }
19}
20
21module.exports = SelfModuleFactory;
Note: See TracBrowser for help on using the repository browser.