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.

ChunkRenderError.js 708B

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. /** @typedef {import("./Chunk")} Chunk */
  8. class ChunkRenderError extends WebpackError {
  9. /**
  10. * Create a new ChunkRenderError
  11. * @param {Chunk} chunk A chunk
  12. * @param {string} file Related file
  13. * @param {Error} error Original error
  14. */
  15. constructor(chunk, file, error) {
  16. super();
  17. this.name = "ChunkRenderError";
  18. this.error = error;
  19. this.message = error.message;
  20. this.details = error.stack;
  21. this.file = file;
  22. this.chunk = chunk;
  23. Error.captureStackTrace(this, this.constructor);
  24. }
  25. }
  26. module.exports = ChunkRenderError;