[Bug]: Pure annotations are incorrectly modified to wrong scope #14797
Labels
area: comments
i: bug
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
pkg: generator
馃捇
How are you using Babel?
Programmatic API (
babel.transform
,babel.parse
)Input code
REPL Link
Configuration file name
No response
Configuration
None
Current and expected behavior
Currently babel strips the parentheses of
(/* @__PURE__ */ f())
, causing the whole expressionf().g()
be marked as pure.Environment
Possible solution
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: