Skip to content

sourcemap support for CSS #519

@yagebu

Description

@yagebu

Hi, first of all, thank you very much for esbuild! The performance is amazing and I really like that it brings just enough batteries included be a nearly complete bundling tool and that it treats CSS as a first-class citizen :). I wrote a plugin to provide support for importing Svelte components, the plugin API worked quite well for that for me (https://github.com/yagebu/esbuild-plugin-svelte).

The Svelte compiler provides sourcemaps for both JS and CSS, which I included inline in the strings that I handed off to esbuild, see here. It worked great for JS but seems that those have no effect in the CSS (and from a quick code search in the repo here, it seems there's just no sourcemap functionality for CSS yet. I don't really use CSS preprocessors, so the comments that reference the file names in the generated CSS already help quite a bit, but having proper sourcemaps would be even better :)

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