RequireEnsureItemDependency.js 765 B

123456789101112131415161718192021222324252627282930313233343536
  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. const NullDependency = require("./NullDependency");
  9. class RequireEnsureItemDependency extends ModuleDependency {
  10. /**
  11. * @param {string} request the request string
  12. */
  13. constructor(request) {
  14. super(request);
  15. }
  16. get type() {
  17. return "require.ensure item";
  18. }
  19. get category() {
  20. return "commonjs";
  21. }
  22. }
  23. makeSerializable(
  24. RequireEnsureItemDependency,
  25. "webpack/lib/dependencies/RequireEnsureItemDependency"
  26. );
  27. RequireEnsureItemDependency.Template = NullDependency.Template;
  28. module.exports = RequireEnsureItemDependency;