webpack
Version:
Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
29 lines (22 loc) • 641 B
JavaScript
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
;
const makeSerializable = require("../util/makeSerializable");
const WebpackError = require("./WebpackError");
class NonErrorEmittedError extends WebpackError {
/**
* @param {EXPECTED_ANY} error value which is not an instance of Error
*/
constructor(error) {
super();
this.name = "NonErrorEmittedError";
this.message = `(Emitted value instead of an instance of Error) ${error}`;
}
}
makeSerializable(
NonErrorEmittedError,
"webpack/lib/errors/NonErrorEmittedError"
);
module.exports = NonErrorEmittedError;