Frankie Bagnardi

Results 56 comments of Frankie Bagnardi

@niedomnie you can import .json files like you do with .js files. Node has supported this for a long time.

This plugin doesn't read other files, so it doesn't know the types exported from other files until runtime. I'd like to keep it this way, but I'm convincible. @thejameskyle is...

Ah, it is open source. https://github.com/thejameskyle/babel-plugin-react-flow-props-to-prop-types

I apologize for such a long standing issue. @TSMMark I might be able to work on this on the weekend, but if you have some time, I would very much...

@TSMMark that might happen if you have a type import (`import type ...`), since at the point the import is reached, we don't know whether or not we need it...

@dlebedynskyi Thanks for the report, should be fixed in 24.1.2

Hello. I don't see any way for us to detect this, so I think you'd have to [suppress the plugin](https://github.com/brigand/babel-plugin-flow-react-proptypes#suppression) for this file. Let me know if you have any...

At least for now, I'd like to maintain the plugin not reading files or invoking CLI tools. There are costs to that limitation, and in your case it won't work...

See https://github.com/brigand/babel-plugin-flow-react-proptypes/issues/197 https://github.com/brigand/babel-plugin-flow-react-proptypes/pull/186 TL;DR we need to add some form of config option to allow this, but I'm not sure on the details of how it should work.