You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 24, 2019. It is now read-only.
I'm using VueJS + FlowJS, when I remove types, attributes of class not initialized are removed too.
Unfortunately initialize variable is not possible here with VueJS because it come from a parent. So I can't rewrite it, there is an error at runtime.
We should be able to preserve uninitialised class fields in the output, but I worry that this will cause problems for people who may still be using the class field syntax purely for Flow typing purposes (e.g. still setting values in the constructor). V8 has just started to ship support for class fields, so it'll be a while before everyone is, say, using flow-node with a version of Node that has them.
Now, we could introduce this as a configurable flag, but it might be simpler to just use @babel/plugin-transform-strip-types in your case, since you're probably already compiling the decorator syntax (etc) with Babel.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm using VueJS + FlowJS, when I remove types, attributes of class not initialized are removed too.
Unfortunately initialize variable is not possible here with VueJS because it come from a parent. So I can't rewrite it, there is an error at runtime.
e.g:
After
flow-remove-types
That I expect:
Is there a solution ?
Thank you very much.
The text was updated successfully, but these errors were encountered: