Repository navigation
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 |