RequireEnsureDependenciesBlock.js 912 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 AsyncDependenciesBlock = require("../AsyncDependenciesBlock");
  7. const makeSerializable = require("../util/makeSerializable");
  8. /** @typedef {import("../AsyncDependenciesBlock").GroupOptions} GroupOptions */
  9. /** @typedef {import("../ChunkGroup").ChunkGroupOptions} ChunkGroupOptions */
  10. /** @typedef {import("../Dependency").DependencyLocation} DependencyLocation */
  11. class RequireEnsureDependenciesBlock extends AsyncDependenciesBlock {
  12. /**
  13. * @param {GroupOptions | null} chunkName chunk name
  14. * @param {(DependencyLocation | null)=} loc location info
  15. */
  16. constructor(chunkName, loc) {
  17. super(chunkName, loc, null);
  18. }
  19. }
  20. makeSerializable(
  21. RequireEnsureDependenciesBlock,
  22. "webpack/lib/dependencies/RequireEnsureDependenciesBlock"
  23. );
  24. module.exports = RequireEnsureDependenciesBlock;