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. class ChunkRenderError extends WebpackError {
  8. constructor(chunk, file, error) {
  9. super();
  10. this.name = "ChunkRenderError";
  11. this.error = error;
  12. this.message = error.message;
  13. this.details = error.stack;
  14. this.file = file;
  15. this.chunk = chunk;
  16. Error.captureStackTrace(this, this.constructor);
  17. }
  18. }
  19. module.exports = ChunkRenderError;