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.

30 lines
809 B

4 years ago
  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. /** @typedef {import("./Dependency").DependencyLocation} DependencyLocation */
  9. class UnsupportedFeatureWarning extends WebpackError {
  10. /**
  11. * @param {Module} module module relevant to warning
  12. * @param {string} message description of warning
  13. * @param {DependencyLocation} loc location start and end positions of the module
  14. */
  15. constructor(module, message, loc) {
  16. super(message);
  17. this.name = "UnsupportedFeatureWarning";
  18. this.module = module;
  19. this.loc = loc;
  20. this.hideStack = true;
  21. Error.captureStackTrace(this, this.constructor);
  22. }
  23. }
  24. module.exports = UnsupportedFeatureWarning;