We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The emitWarning method should retain an attribute that is a reference to the native WARNING, just like WEBPACK thread-loader link
// ... emitWarning: (warning) => { writeJson({ type: 'emitWarning', id, data: toErrorObj(warning), }); }, function toErrorObj(err) { return { message: err.message, details: err.details, stack: err.stack, hideStack: err.hideStack, }; }
webpack link
constructor(warning, { from = null } = {}) { let message = "Module Warning"; if (from) { message += ` (from ${from}):\n`; } else { message += ": "; } if (warning && typeof warning === "object" && warning.message) { message += warning.message; } else if (warning) { message += String(warning); } super(message); this.name = "ModuleWarning"; this.warning = warning; this.details = warning && typeof warning === "object" && warning.stack ? cleanUp(warning.stack, this.message) : undefined; Error.captureStackTrace(this, this.constructor); }
EmitError method is best like this
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The emitWarning method should retain an attribute that is a reference to the native WARNING, just like WEBPACK
thread-loader link
webpack link
EmitError method is best like this
The text was updated successfully, but these errors were encountered: