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