This repository was archived by the owner on Jan 11, 2023. It is now read-only.
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
Ability to disable mangling of errors/warnings #901
Open
Description
See this file:
node_modules/sapper/dist/core.js
constructor(duration, compiler, sourcemap) {
this.duration = duration;
this.sourcemap = sourcemap;
this.errors = compiler.errors.map(munge_warning_or_error);
this.warnings = compiler.warnings.map(munge_warning_or_error); // TODO emit this as they happen
...
function munge_warning_or_error(warning_or_error) {
return {
file: warning_or_error.filename,
message: [warning_or_error.message, warning_or_error.frame].filter(Boolean).join('\n')
};
}
Can you add option to disable this mangle function. I need full information about errors - with stack trace. For example now I got such error:
✗ client
Cannot read property 'type' of undefined
undefined
It was impossible to find the cause of the error by this text.