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.
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 returnnull
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.