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