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
I found your repo, that looks really efficient to generate prop-types.
I saw that the inject method does inject prop-types into a file content, but the file content need to be a JS file, not a TS one.
The Javascript reality is that build is really complex and babel does really simplify it.
As a matter of facte, I saw that you do have a babel plugin that injects proptypes into the AST, that is called by the inject method. But it has it's own configuration, of babel.
Do you think it would be possible to externalize this plugin to make a "real" babel plugin ?
The idea behind that is to have a babel config like that:
Hi,
I found your repo, that looks really efficient to generate prop-types.
I saw that the
inject
method does inject prop-types into a file content, but the file content need to be a JS file, not a TS one.The Javascript reality is that build is really complex and babel does really simplify it.
As a matter of facte, I saw that you do have a babel plugin that injects proptypes into the AST, that is called by the
inject
method. But it has it's own configuration, of babel.Do you think it would be possible to externalize this plugin to make a "real" babel plugin ?
The idea behind that is to have a babel config like that:
thank you !
The text was updated successfully, but these errors were encountered: