esbuild target: User-Agent not working
Getting the target via the query params seems to work...
curl https://esm.sh/[email protected]\?target\=es2015
however, using the user agent does not seem to work
curl https://esm.sh/[email protected] -H User-Agent:esm/es2015
Additionally, on the esm.sh website, it mentions
By default, esm.sh checks the User-Agent header to determine the build target.
but doesn't mention how it does that, it would be nice to mention how this works, I had to check the code and still didn't work.
there are lot of changes i didn't deploy to the production yet, including support of User-Agent:esm/es20xx
this is introduced in v136, currently production is v135
Thanks, when is the next planned release?