You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Describe the bug
SWC incorrectly transpiles local usage of react component within namespace
Input code
Config
Playground link (or link to the minimal reproduction)
https://play.swc.rs/?version=1.3.107&code=H4sIAAAAAAAAA8vMLcgvKlHQUkgsVghKTUwuUUgrys9VUC8CsdWtebl4uVIrwEryEnNTiwsSk1MV3PLz%2FYoVqnm5FBSgcsn5ecUlCsEZiUWpKQq2ChqaCrZ2CuqeMeq5CsUQweR8oEV5qXlgM9H0%2BSZm5sF12UBM0bcDqqsFAMZ0SDGeAAAA&config=H4sIAAAAAAAAA1WPTQ7CIBCF9z0FmbULNdGFd%2FAQBKcNhr8w00TS9O4FSlF3zPfe480sgxDwJgUPseRnHoKMhLHPmVByLD%2BZAKeApKIODKdDZSoSxxkrWXcBWMYJuYSQrufLrQXAeE%2BY8SgNYWNWOz2m30rlbYhI9G8sVukm0%2FN749BawfrXXMV2Sll33%2BAOX9NR1j8GTc8jWe9YN%2BKXZ60WAQAA
Expected behavior
SWC should output code like this.
Actual behavior
Transpiled code produces an error "Shared is not defined"
Version
1.3.107
Additional context
Interesting, that swc produces correct code, if we don't export 'Shared' component from namespace
Input
Output
The text was updated successfully, but these errors were encountered: