The content of the map just include the base file with the @forward rule so it doesn't actual resolve any useful information.
Repo with an example.
https://github.com/neclimdul/vite-scss-sourcemap-test
I tried to track this down, but it was pretty hard to understand. It seems like rollup understands the full source map, sourcemapChain in getCombinedSourcemap has all the information to build the source map including the linked sheet. But then it calls getCollapsedSourcemap and that reduces the chain with this return sourcemapChain.reduce(linkMap, source); throwing away all the linked maps. I don't really understand what rollup is trying to do here or how you could coax it into giving you everything. Its also possible I'm completely on the wrong track.
The content of the map just include the base file with the
@forwardrule so it doesn't actual resolve any useful information.Repo with an example.
https://github.com/neclimdul/vite-scss-sourcemap-test
I tried to track this down, but it was pretty hard to understand. It seems like rollup understands the full source map,
sourcemapChainingetCombinedSourcemaphas all the information to build the source map including the linked sheet. But then it callsgetCollapsedSourcemapand that reduces the chain with thisreturn sourcemapChain.reduce(linkMap, source);throwing away all the linked maps. I don't really understand what rollup is trying to do here or how you could coax it into giving you everything. Its also possible I'm completely on the wrong track.