-
-
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
Fix typescript side effects #8738
Fix typescript side effects #8738
Conversation
yuri-karadzhov
commented
Sep 20, 2018
Q | A |
---|---|
Fixed Issues? | `Fixes #8634 |
Patch: Bug Fix? | Yes |
Major: Breaking Change? | No |
Minor: New Feature? | No |
Tests Added + Pass? | Yes |
Documentation PR Link | |
Any Dependency Changes? | No |
License | MIT |
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/9496/ |
Thank you very much for this, could you please add a test? If you need help with the tests feel free to join our slack chat and ask there, but basically all the tests for the transforms have a file with the input code ( |
Sure will do that this week. Thanks for detailed explanation. |
c376f83
to
f705f26
Compare
Strange, it works in application, but not in test. I will investigate. |
The underlying problem was that babel-traverse was not visiting decorators which are added to params. This resulted in the identifier from the decorators never being counted as usage of a declaration (in this case the named imports). I changed the PR to reflect this. Now the test works. The only 3 cases I could come up are identifiers, assignments and objectpatterns: function boo (@dec() a, @dec() b = 1, @dec() { foo }) {} rest params throw when annotated. |
Any updates on this PR? |
Any ETA when this will be released? Are there nightly builds of Babel available that I could use in the interim? |
Usually we release a new version every ~2 weeks |