@babel/plugin-proposal-optional-catch-binding

    1. try {
    2. throw 0;
    3. } catch {
    4. } finally {
    5. doSomeCleanup();
    1. "plugins": ["@babel/plugin-proposal-optional-catch-binding"]
    2. }
    1. require("@babel/core").transformSync("code", {
    2. });