EntryDependency.js 581 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. MIT License http://www.opensource.org/licenses/mit-license.php
  3. Author Tobias Koppers @sokra
  4. */
  5. "use strict";
  6. const makeSerializable = require("../util/makeSerializable");
  7. const ModuleDependency = require("./ModuleDependency");
  8. class EntryDependency extends ModuleDependency {
  9. /**
  10. * @param {string} request request path for entry
  11. */
  12. constructor(request) {
  13. super(request);
  14. }
  15. get type() {
  16. return "entry";
  17. }
  18. get category() {
  19. return "esm";
  20. }
  21. }
  22. makeSerializable(EntryDependency, "webpack/lib/dependencies/EntryDependency");
  23. module.exports = EntryDependency;