Skip to content

Commit

Permalink
including esm.js in stack traces is almost never helpful
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Feb 8, 2019
1 parent ccf2b44 commit 555ecd4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/stack.js
Expand Up @@ -24,6 +24,9 @@ const skip = (process.cwd() !== tapDir ||
new RegExp(resc(require.resolve('esm'))),
]
: [])
: +process.env.TAP_DEV_LONGSTACK !== 1 ? [
new RegExp(resc(require.resolve('esm'))),
]
: []

sourceMapSupport.install({environment:'node'})
Expand Down

0 comments on commit 555ecd4

Please sign in to comment.