-
Notifications
You must be signed in to change notification settings - Fork 1.3k
sourcemap support for CSS #519
Description
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 :)