Re:Porting 30K lines of code from Flow to TypeScript
by basil-rash on Monday January 14, 2019 @07:15PM
(#18907846)
To me that example doesn't look all that different from typical hot-reload provided by webpack or similar. Can you tell me what I'm missing here?
[ Parent
| on HN ]
Re:Porting 30K lines of code from Flow to TypeScript
by Jach on Monday January 14, 2019 @11:05PM
(#18908787)
I'm not familiar with webpack but in general hot reloading isn't quite the same as dynamic redefinition, but can be close enough for many purposes. If you can set up something approaching Java's hotswap (made even better by JRebel) then perhaps the advantage is lessened.
Re:Porting 30K lines of code from Flow to TypeScript
by porsager on Tuesday January 15, 2019 @02:48AM
(#18909442)
You get dynamic redefinition with Wright[1][2] and chrome, and you can plug in Typescript pretty easily.
In v2 currently under way, you can use es modules which gives you a much better experience since you can reload a single file instead of an entire bundle (always sub 100ms update times).
[1] https://github.com/porsager/wright [2] http://porsager.com/wright/example.mov