babel-plugin-promise-auto-add-catch
v0.0.3
Published
A Babel plugin for the developer to auto add catch with Promise function.
Downloads
4
Readme
babel-plugin-promise-auto-add-catch
一个自动给promise添加catch的babel插件
安装
npm install --save-dev babel-plugin-promise-auto-add-catch
使用说明
babel.config.js 配置如下
module.exports = {
plugins: [
[
require('babel-plugin-await-add-trycatch'),
{
exclude: ['build']
}
]
}