1234567891011121314151617181920
  1. /*
  2. MIT License http://www.opensource.org/licenses/mit-license.php
  3. Author Tobias Koppers @sokra
  4. */
  5. "use strict";
  6. const Tapable = require("tapable");
  7. const MultiModule = require("./MultiModule");
  8. module.exports = class MultiModuleFactory extends Tapable {
  9. constructor() {
  10. super();
  11. }
  12. create(data, callback) {
  13. const dependency = data.dependencies[0];
  14. callback(null, new MultiModule(data.context, dependency.dependencies, dependency.name));
  15. }
  16. };