vite-plugin-top-level-await breaks source map generation in Vite
So, we've noticed that our source maps were broken since switching to Vite. Most of the generated bundles were missing the //# sourceMappingURL=... annotation.
We ended up having to deactivate all our Vite plugins one by one, and this one turned out to be the culprit. Unfortunately, I have not done any further digging so I cannot offer any further insight, but I still thought it prudent to open this issue so others who run across the same problem might find it.
Is this a known issue in general or does this work for everyone else?
Yes. I'm sorry it's broken. I didn't handle source-map.
I had the same problem. I need to produce source-map in my production code and this plugin messed with the sourcemap creation .
Is there a fix to be expected for this any time soon?
But I have no idea of how to implement this...