From 61232a61e65c8e836e53ac8fa5bd12631424a0f1 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Fri, 29 Dec 2017 15:16:31 +0330 Subject: [PATCH] fix: avoid pretty-error mutating traces --- lib/common/cli/errors.js | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/lib/common/cli/errors.js b/lib/common/cli/errors.js index 8ec2230db6..8c8ad73da2 100644 --- a/lib/common/cli/errors.js +++ b/lib/common/cli/errors.js @@ -1,21 +1,7 @@ const PrettyError = require('pretty-error') // Start default instance -const pe = PrettyError.start() - -// Configure prettyError instance -pe.skipPackage('regenerator-runtime') -pe.skipPackage('babel-runtime') -pe.skipPackage('core-js') - -// Skip node internals -pe.skip((traceLine, lineNumber) => { - if (!traceLine.file) { - return true - } -}) - -pe.skipNodeFiles() +const pe = new PrettyError() // Console error unhandled promises process.on('unhandledRejection', function (err) {