ConsumeSharedFallbackDependency.js 665 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 ModuleDependency = require("../dependencies/ModuleDependency");
  7. const makeSerializable = require("../util/makeSerializable");
  8. class ConsumeSharedFallbackDependency extends ModuleDependency {
  9. /**
  10. * @param {string} request the request
  11. */
  12. constructor(request) {
  13. super(request);
  14. }
  15. get type() {
  16. return "consume shared fallback";
  17. }
  18. get category() {
  19. return "esm";
  20. }
  21. }
  22. makeSerializable(
  23. ConsumeSharedFallbackDependency,
  24. "webpack/lib/sharing/ConsumeSharedFallbackDependency"
  25. );
  26. module.exports = ConsumeSharedFallbackDependency;