Compile regular expressions using named groups to ES5.
See our website @babel/plugin-transform-named-capturing-groups-regex for more information.
Using npm:
npm install --save-dev @babel/plugin-transform-named-capturing-groups-regex
or using yarn:
yarn add @babel/plugin-transform-named-capturing-groups-regex --dev