Skip to content

Sourcemap missing any fowarded styles #8

@neclimdul

Description

@neclimdul

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions