Closed damianobarbati closed 6 years ago
Hi, thanks for the report, and sorry for the delay. It turns out, this Babel plugin had very outdated version of the regexp-tree
, which had the parser bug. I've just updated to the latest, and published v. 0.0.6
, and the /[.*+?^${}()|[\]\\]/g
should be parsable.
Notice though, that this plugin doesn't have runtime support, and you can't use (?<$<param>>
in the replace string.
For the full support see the https://github.com/babel/babel/pull/7105.
I'm trying to transpile the following (I just added this plugins to babel plugins array):
But I get:
Is there some syntax error in the regexps I'm trying to transpile? Note: everything works on Chrome.