1.0.0 • Published 4 years ago

babel-plugin-async-captures v1.0.0

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago
// .babel.rc

plugins: [
  [
    'async-AutomaticallyAddCatch',
    {
      catchCode: `alert(e)`,
    },
  ],
];

Options

NameTypeDefaultDescription
identifier{string}"e"catch 子句中的错误对象标识符
catchCode{string}"console.error(e)"catch 子句中的代码片段
finallyCode{string}undefinedfinally 子句中的代码片段