You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ModuleDependencyWarning.js 554B

12345678910111213141516171819202122232425
  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. module.exports = class ModuleDependencyWarning extends WebpackError {
  8. constructor(module, err, loc) {
  9. super(err.message);
  10. this.name = "ModuleDependencyWarning";
  11. this.details = err.stack
  12. .split("\n")
  13. .slice(1)
  14. .join("\n");
  15. this.module = module;
  16. this.loc = loc;
  17. this.error = err;
  18. this.origin = module.issuer;
  19. Error.captureStackTrace(this, this.constructor);
  20. }
  21. };