-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Labels
i: needs triageoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issueA closed issue/PR that is archived due to age. Recommended to make a new issue
Description
💻
- Would you like to work on a fix?
How are you using Babel?
Other (Next.js, Gatsby, vue-cli, ...)
Input code
"abcd".replace(/(?<foo>b)/, "[$<bar>]")
Configuration file name
No response
Configuration
Using @babel/plugin-transform-named-capturing-groups-regex
Current and expected behavior
When running the input code, it produces "a[]cd"
. When transpiling it with Babel, it produces "a[$undefined]cd"
.
Environment
v7.26
Possible solution
No response
Additional context
No response
Metadata
Metadata
Assignees
Labels
i: needs triageoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issueA closed issue/PR that is archived due to age. Recommended to make a new issue