-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Update: Register both '.ts/.tsx' extensions for babel #63
Conversation
Does this also need a new test? |
I think it would be good. I'll add. |
@wKich I've been digging into this some more and it seems that babel actually supports
Is there a use case for registering both extensions? |
This is also an issue with I think the proper solution here would be to get an option upstreamed to babel. Want to give that a shot? |
I'm going to pull in the workaround into the tests but I think we need to upstream the fix into |
But, why not simply register both extensions? I mean, I agree that babel de-registering is a problem in this scenario, but we can't be sure that behavior is used by somebody. Disable de-registering by default is a breaking change, adding an option increase complexity. For what?
No. These options are not enable
|
I'll try to create issue in babel about de-registering option. |
Because this would also break the promise for
Your interpretation of the options is incorrect (they are named very poorly). I've dug into the code to understand what they actually do:
Thank you for opening an issue. I believe that is the best way to solve the issue. |
Fix #61