Pass filename to babel-plugin-relay
Internally babel-plugin-relay uses the filename to find the right relative import paths when an artifactDirectory is configured. Currently vite-plugin-relay executes the plugin against a source string (rather than a file) this isn't present and the plugin fails. This just updates the babel invocation to propagate the filename.
That seems to break using aliases on imports for me
Is this resolved with the new v2 release? If so can we close this PR.
I am going to close this based on the lack of response and the chance that it will cause issues.
Feel free to reopen if you've got time to look into the breaking import aliases because sadly I don't at the moment.