RequireEnsureDependenciesBlock.js 846 B

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