Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

MultiEntryDependency.js 603B

12345678910111213141516171819202122232425
  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;