Invalid transform-unicode-sets-regex output involving union and intersection operation
Author: JLHwungCreated Sep 29, 2026Updated Sep 29, 2026
Labelsarea: upstream
- Would you like to work on a fix?
How are you using Babel?
Programmatic API (babel.transform, babel.parse)
Input code
/[[b-da-c]&&a]/vConfiguration file name
No response
Configuration
{
"filename": "repl.js",
"plugins": [
[
"@babel/plugin-transform-unicode-sets-regex",
{}
]
],
"sourceType": "module"
}Current and expected behavior
Current output:
/[]/u;Expected output:
/a/u;Environment
REPL
Possible solution
This is an upstream issue: https://github.com/mathiasbynens/regenerate/pull/48
Additional context
No response
Source: babel/babel