DelegatedSourceDependency.js 632 B

123456789101112131415161718192021222324252627282930313233
  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 DelegatedSourceDependency extends ModuleDependency {
  9. /**
  10. * @param {string} request the request string
  11. */
  12. constructor(request) {
  13. super(request);
  14. }
  15. get type() {
  16. return "delegated source";
  17. }
  18. get category() {
  19. return "esm";
  20. }
  21. }
  22. makeSerializable(
  23. DelegatedSourceDependency,
  24. "webpack/lib/dependencies/DelegatedSourceDependency"
  25. );
  26. module.exports = DelegatedSourceDependency;