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