CriticalDependencyWarning.js 568 B

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. const makeSerializable = require("../util/makeSerializable");
  8. class CriticalDependencyWarning extends WebpackError {
  9. constructor(message) {
  10. super();
  11. this.name = "CriticalDependencyWarning";
  12. this.message = "Critical dependency: " + message;
  13. }
  14. }
  15. makeSerializable(
  16. CriticalDependencyWarning,
  17. "webpack/lib/dependencies/CriticalDependencyWarning"
  18. );
  19. module.exports = CriticalDependencyWarning;