So. 6to5 transpilation with Flow typechecking. How?
-
-
Replying to @tgvashworth
@phuunet - something like this? https://github.com/gaearon/flowcheck-loader … cc@dan_abramov1 reply 0 retweets 0 likes -
Replying to @irvinebroque
@irvinebroque@dan_abramov Yeah — but the jsx ES6 transpiler is an incomplete implementation.1 reply 0 retweets 0 likes -
Replying to @tgvashworth
@phuunet@irvinebroque You'll want to chain 6to5 (with an option *not* to strip flow), then flowcheck, then standalone Flow stripper.1 reply 0 retweets 0 likes -
Replying to @dan_abramov
@phuunet@irvinebroque Though that can be pretty slow due to parsing overhead, I guess.1 reply 0 retweets 0 likes -
Replying to @dan_abramov
@dan_abramov@irvinebroque But 6to5 will error when it sees Flow type annotations, surely? The AST parse will fail.1 reply 0 retweets 0 likes -
Replying to @tgvashworth
@phuunet 6to5 can parse flow types.@dan_abramov@irvinebroque1 reply 0 retweets 1 like -
Replying to @sebmck
@sebmck Just spotted that; so cool. But how do I get flow checking it?!@dan_abramov@irvinebroque1 reply 0 retweets 0 likes -
Replying to @tgvashworth
@phuunet You need to use the official flow type checker.@dan_abramov@irvinebroque1 reply 0 retweets 1 like -
Replying to @sebmck
@sebmck Right, but it doesn't support es6 properly, so I need 6to5 to keep the type annotations... right?@dan_abramov@irvinebroque1 reply 0 retweets 0 likes
@phuunet It has partial ES6 support, you'll have to limit yourself to it until https://github.com/6to5/6to5/issues/665 … @dan_abramov @irvinebroque
-
-
Replying to @sebmck
@sebmck Indeed. The lack of fat arrow support is pretty major. Probably gonna drop using es6 for this project :/@dan_abramov@irvinebroque0 replies 0 retweets 1 likeThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 