CriticalDependencyWarning.js 614 B

12345678910111213141516171819202122232425262728
  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. /**
  10. * @param {string} message message
  11. */
  12. constructor(message) {
  13. super();
  14. this.name = "CriticalDependencyWarning";
  15. this.message = "Critical dependency: " + message;
  16. }
  17. }
  18. makeSerializable(
  19. CriticalDependencyWarning,
  20. "webpack/lib/dependencies/CriticalDependencyWarning"
  21. );
  22. module.exports = CriticalDependencyWarning;