FallbackItemDependency.js 571 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 ModuleDependency = require("../dependencies/ModuleDependency");
  7. const makeSerializable = require("../util/makeSerializable");
  8. class FallbackItemDependency extends ModuleDependency {
  9. constructor(request) {
  10. super(request);
  11. }
  12. get type() {
  13. return "fallback item";
  14. }
  15. get category() {
  16. return "esm";
  17. }
  18. }
  19. makeSerializable(
  20. FallbackItemDependency,
  21. "webpack/lib/container/FallbackItemDependency"
  22. );
  23. module.exports = FallbackItemDependency;