@babel/plugin-transform-named-capturing-groups-regex
In
var re = _wrapRegExp(/(\d{4})-(\d{2})-(\d{2})/, { year: 1, month: 2, day: 3 });
console.log(re.exec("1999-02-29").groups.year);
"plugins": ["@babel/plugin-transform-named-capturing-groups-regex"]
}
plugins: ["@babel/plugin-transform-named-capturing-groups-regex"],
});
boolean
, defaults to
You can read more about configuring plugin options here