BuildCycleError.js 600 B

123456789101112131415161718192021222324252627
  1. /*
  2. MIT License http://www.opensource.org/licenses/mit-license.php
  3. Author Tobias Koppers @sokra
  4. */
  5. "use strict";
  6. const WebpackError = require("../WebpackError");
  7. /** @typedef {import("../Module")} Module */
  8. class BuildCycleError extends WebpackError {
  9. /**
  10. * Creates an instance of ModuleDependencyError.
  11. * @param {Module} module the module starting the cycle
  12. */
  13. constructor(module) {
  14. super(
  15. "There is a circular build dependency, which makes it impossible to create this module"
  16. );
  17. this.name = "BuildCycleError";
  18. this.module = module;
  19. }
  20. }
  21. module.exports = BuildCycleError;