10
0

CommentCompilationWarning.js 725 B

1234567891011121314151617181920212223242526272829303132
  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. /** @typedef {import("./Dependency").DependencyLocation} DependencyLocation */
  9. class CommentCompilationWarning extends WebpackError {
  10. /**
  11. * @param {string} message warning message
  12. * @param {DependencyLocation} loc affected lines of code
  13. */
  14. constructor(message, loc) {
  15. super(message);
  16. this.name = "CommentCompilationWarning";
  17. this.loc = loc;
  18. }
  19. }
  20. makeSerializable(
  21. CommentCompilationWarning,
  22. "webpack/lib/CommentCompilationWarning"
  23. );
  24. module.exports = CommentCompilationWarning;