Last change
on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
384 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | /*
|
---|
| 2 | MIT License http://www.opensource.org/licenses/mit-license.php
|
---|
| 3 | Author Tobias Koppers @sokra
|
---|
| 4 | */
|
---|
| 5 |
|
---|
| 6 | "use strict";
|
---|
| 7 |
|
---|
| 8 | class 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 |
|
---|
| 21 | module.exports = SelfModuleFactory;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.