Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transformer-typescript-tsc multiple default exports #6392

Open
shulcsm opened this issue Jun 2, 2021 · 2 comments
Open

transformer-typescript-tsc multiple default exports #6392

shulcsm opened this issue Jun 2, 2021 · 2 comments

Comments

@shulcsm
Copy link

shulcsm commented Jun 2, 2021

🐛 bug report

ESM builds with transformer-typescript-tsc@2.0.0-nightly.690 and parcel@2.0.0-nightly.688 result in multiple default exports

🤔 Expected Behavior

Valid package

😯 Current Behavior

export{o as default,s as ButtonBase,i as default,b as Button,u as default}

🔦 Context

I'm not smart enough to debug this but suspect it has something to do with hoisting.
Default (babel?) transform seems to be working just fine.

💻 Code Sample

https://github.com/shulcsm/parceldemo

@shulcsm
Copy link
Author

shulcsm commented Jun 3, 2021

Update: looks like it has nothing to do with transformer-typescript-tsc in particular, just encountered similar issue with babel transform on slightly different layout.

export * from files that only have type exports seems to be the cause.

@devongovett
Copy link
Member

Possibly related to #6361

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants