0.0.8 • Published 5 years ago
babel-plugin-try-catch-func v0.0.8
babel-plugin-try-catch
Example
In
// input codeOut
"use strict";
// output codeInstallation
$ npm install babel-plugin-try-catchUsage
Via .babelrc (Recommended)
.babelrc
{
"plugins": ["try-catch"]
}Via CLI
$ babel --plugins try-catch script.jsVia Node API
require("babel-core").transform("code", {
plugins: ["try-catch"]
});