React inline elements transform error for namespaced JSX components using named import (T7021) #4027
Labels
area: react
i: bug
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
Bug information
Options
.babelrc
Input code
Description
When using the React inline elements transform, a namespaced JSX component from a named import is transformed incorrectly. It drops the root import alias name (
_export
in this case) and leaves only the named import part (form
in this case) without reference to the actual import alias, causing a ReferenceError.The text was updated successfully, but these errors were encountered: