oscartbeaumont / vite-plugin-relay

A vite plugin for Relay
MIT License
81 stars 14 forks source link

Create sourcemaps for the relay plugin transformation #459

Closed tmair closed 11 months ago

tmair commented 2 years ago

This PR fixes broken sourcemaps when using this plugin. The issue is, that the transfomations made by the babel-plugin-relay transformation will not be tracked by vite if we return null for the source maps. Vite therefore treats the transformations made by this plugin as a noop from a sourcemap perspective. Since the plugin introduces several whitespaces, sourcemaps are practically unusable.

tmair commented 1 year ago

@oscartbeaumont Is there anything I can do to get this fix into a release?

oscartbeaumont commented 11 months ago

Sorry for the major delay. I don't actively use this project anymore so maintenance is seldom.