lukeed / clsx

A tiny (239B) utility for constructing `className` strings conditionally.
MIT License
8.08k stars 141 forks source link

Is it possible to enable `sourcemap` ? #80

Closed baseplate-admin closed 8 months ago

baseplate-admin commented 1 year ago

Hi,

Thanks for creating this awesome tool. I was wondering if you could add sourcemap for the minified bundles.

Reasons : The original code of clsx is not included in the project that uses clsx image

lukeed commented 8 months ago

Much prefer to ship production-ready code especially given that the module is less than 250b. Realistically there's little/no need to actually expand this part of an application. There's lots of unpkg & esm.sh & deno.land usage for this library, so shipping the unminified version will have a measurable impact that I don't feel good about.

baseplate-admin commented 8 months ago

Hi, thanks for getting back.

so shipping the unminified version

It is not about shipping unminfied version. By enabling source-map, you will just ship a .map file, Everything should stay just the same ( plus one .map file )