mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 22:25:12 +00:00
skip dist artifacts and Node internals in CLI error traces
This commit is contained in:
parent
18b6eb5b56
commit
15f9994928
@ -7,6 +7,15 @@ const pe = PrettyError.start()
|
||||
pe.skipPackage('regenerator-runtime')
|
||||
pe.skipPackage('babel-runtime')
|
||||
pe.skipPackage('core-js')
|
||||
|
||||
// Skip dist artifacts and Node internals
|
||||
const skipFiles = [ 'nuxt.js', 'core.js' ]
|
||||
pe.skip((traceLine, lineNumber) => {
|
||||
if (!traceLine.file || skipFiles.indexOf(traceLine.file) !== -1) {
|
||||
return true
|
||||
}
|
||||
})
|
||||
|
||||
pe.skipNodeFiles()
|
||||
|
||||
// Console error unhandled promises
|
||||
|
Loading…
Reference in New Issue
Block a user