Nicolò Ribaudo a27b9b4299
Add @babel/plugin-transform-named-capturing-groups-regex (#7105)
When the `runtime` flag is on (by default), this plugin adds a new helper which wraps the native `RegExp` class to provide groups support. People nees to use a polyfill (I implemented it in core-js) for browsers that don't support ES6 regexps.
2019-01-15 18:21:17 +01:00

20 lines
503 B
Markdown

# @babel/plugin-transform-named-capturing-groups-regex
> Compile regular expressions using named groups to ES5.
See our website [@babel/plugin-transform-named-capturing-groups-regex](https://babeljs.io/docs/en/next/babel-plugin-transform-named-capturing-groups-regex.html) for more information.
## Install
Using npm:
```sh
npm install --save-dev @babel/plugin-transform-named-capturing-groups-regex
```
or using yarn:
```sh
yarn add @babel/plugin-transform-named-capturing-groups-regex --dev
```