const
  PrettyError = require('pretty-error'),
  pe = PrettyError.start()

pe.skipPackage('regenerator-runtime')
pe.skipPackage('babel-runtime')
pe.skipNodeFiles()

let ouchInstance

module.exports.getOuchInstance = function () {
  if (ouchInstance) {
    return ouchInstance
  }

  const Ouch = require('ouch')
  ouchInstance = (new Ouch()).pushHandler(
    new Ouch.handlers.PrettyPageHandler('orange', null, 'sublime')
  )

  return ouchInstance
}

@@ -2,22 +2,11 @@
 onst
-%0A  PrettyError
+ pe
  = r
@@ -31,28 +31,8 @@
 or')
-,%0A  pe = PrettyError
 .sta
@@ -243,16 +243,29 @@
 ce%0A  %7D%0A%0A
+  pe.stop()%0A%0A
   const 

stop PrettyError so that Ouch can access the stack trace