短筹码
安装
$ npm install short-stack
用法
if ( process . env . NODE_ENV !== "production" ) {
require ( "short-stack" ) ( {
builtin : false , // hide frames within builtin modules (process,domain,etc.)
async : true , // collect asynchronous stack traces (with stackup)
include : [ // whitelist for stack frames (that are not built-in modules)
__dirname + "./src"
]
} )
}