You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
603 B

4 years ago
  1. /*
  2. MIT License http://www.opensource.org/licenses/mit-license.php
  3. Author Tobias Koppers @sokra
  4. */
  5. "use strict";
  6. /** @typedef {import("./SingleEntryDependency")} SingleEntryDependency */
  7. const Dependency = require("../Dependency");
  8. class MultiEntryDependency extends Dependency {
  9. /**
  10. * @param {SingleEntryDependency[]} dependencies an array of SingleEntryDependencies
  11. * @param {string} name entry name
  12. */
  13. constructor(dependencies, name) {
  14. super();
  15. this.dependencies = dependencies;
  16. this.name = name;
  17. }
  18. get type() {
  19. return "multi entry";
  20. }
  21. }
  22. module.exports = MultiEntryDependency;