babel-plugin-promise-catcher:自动为promise增加.catch方法,支持自定义上报方法

时间:2024-05-29 11:32:44
【文件属性】:

文件名称:babel-plugin-promise-catcher:自动为promise增加.catch方法,支持自定义上报方法

文件大小:8KB

文件格式:ZIP

更新时间:2024-05-29 11:32:44

babel babel-plugin JavaScript

Start yarn add babel-plugin-promise-catcher --dev What did promise catcher do? Automatically append .catch to Promise(You can filter by directory) and report error info(customization) Automatically wrap FunctionDeclaration and ClassMethod with try-catch,but opening this option results in try-catch multiple nesting. It is recommended to filter with functional Dirs. Close by default and needs to be


【文件预览】:
babel-plugin-promise-catcher-master
----index.js(8KB)
----package.json(682B)
----test()
--------test.js(564B)
--------report.js(92B)
--------out.js(90B)
--------in.js(30B)
----template.js(711B)
----README.md(6KB)

网友评论