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