-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[Bug]: @babel/preset-typescript@7.22.15
fails when exporting namespace
#15940
Comments
Hey @snitin315! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite. |
@babel/preset-typescript@7.22.15
fails when exporting namespace
This has been probably caused by #15799, but the old output was wrong too. We might have to add a "is namespace && will be stripped because it only contains types" check in
registerGlobalType in
I see that you marked "Would you like to work on a fix?", let me know if you need further help :) |
@nicolo-ribaudo How do I check it's a namespace, currently |
You can use |
@snitin315 Are you still working on this? |
@nicolo-ribaudo not as of now. Feel free to pick this up. |
For anyone that wants to help :) If it is the first time that you contribute to Babel, follow these steps: (you need to have
|
hey there can I pick this up? |
Sure! Feel free to write here if you need more help :) |
I could try taking a stab at it if niftytyro isn't working on it anymore! |
Yes sure please! I'm not working on it right now. Feel free to take it |
💻
How are you using Babel?
@rollup/plugin-babel
Input code
Building the following code with
@babel/preset-typescript
fails:with the following error:
However if I move the export to declaration itself, it builds successful:
Configuration file name
.babelrc.js
Configuration
Current and expected behavior
Currently it throws error with v7.22
It should not throw error like in v7.16
Environment
Possible solution
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: