1.0.1 • Published 3 years ago

async2trycatch v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

async2trycatch

Install

yarn add async2trycatch -D

Usage

// webpack.config.js

module: {
    rules: [
        {
            test: /\.js$/,
            use:{
                loader:'async2trycatch',
                options:{
                }
            }
        }
    ]
}

Options

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

3 years ago

1.0.0

3 years ago