vite-plugin-relay icon indicating copy to clipboard operation
vite-plugin-relay copied to clipboard

Pass filename to babel-plugin-relay

Open kejistan opened this issue 3 years ago • 2 comments

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.

kejistan avatar May 04 '22 18:05 kejistan

That seems to break using aliases on imports for me

julioxavierr avatar Aug 05 '22 18:08 julioxavierr

Is this resolved with the new v2 release? If so can we close this PR.

oscartbeaumont avatar Sep 10 '22 06:09 oscartbeaumont

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.

oscartbeaumont avatar Dec 10 '23 09:12 oscartbeaumont