yusinto/relay-compiler-plus

Support passing in extensions

Closed this issue · 2 comments

relay-compiler supports passing in --extensions, so you can run it if you have a convention of naming files .jsx for instance.

In my case, I didn't have much of a convention yet, so I worked around it by just renaming my files, but I may come back to looking at the code here and improving this later.

Hi this is a good idea, should not be too hard to do. I will see if I can submit a PR soon. Thanks.

v1.6.5 now does this. I added jsx support by default, so you don't have to use the extensions flag. You can still specify it for other custom file extensions. Let me know if it works!