Relay Classic / Compat require file names to match fragment names to ensure Relay Compat mechanisms work correctly. However in Relay Modern this doesn't necessarily need to be true.
There have been a few issues opened in the past about this issue, so it would be great to fix this with a pull request.
Note that fragment names should still continue to be unique across a compiled app.
can relay-compiler support .jsx?
For anyone interested in sending a PR, we are supportive of adding a config option (via relay-config) that allows an application to disable the document name validation.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Most helpful comment
For anyone interested in sending a PR, we are supportive of adding a config option (via relay-config) that allows an application to disable the document name validation.