We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Whenever the User-Agent header contains "HeadlessChrome", the build target "es2015" will be selected, regardless of the specified version:
$ curl -s -H "User-Agent: HeadlessChrome/80" https://esm.sh/react@18.2.0 /* esm.sh - react@18.2.0 */ export * from "https://esm.sh/stable/react@18.2.0/es2015/react.js"; export { default } from "https://esm.sh/stable/react@18.2.0/es2015/react.js";
$ curl -s -H "User-Agent: HeadlessChrome/109" https://esm.sh/react@18.2.0 /* esm.sh - react@18.2.0 */ export * from "https://esm.sh/stable/react@18.2.0/es2015/react.js"; export { default } from "https://esm.sh/stable/react@18.2.0/es2015/react.js";
$ curl -s -H "User-Agent: Chrome/80" https://esm.sh/react@18.2.0 /* esm.sh - react@18.2.0 */ export * from "https://esm.sh/stable/react@18.2.0/es2021/react.js"; export { default } from "https://esm.sh/stable/react@18.2.0/es2021/react.js";
$ curl -s -H "User-Agent: Chrome/109" https://esm.sh/react@18.2.0 /* esm.sh - react@18.2.0 */ export * from "https://esm.sh/stable/react@18.2.0/es2022/react.js"; export { default } from "https://esm.sh/stable/react@18.2.0/es2022/react.js";
$ curl -s -H "User-Agent: HeadlessSomething/109" https://esm.sh/react@18.2.0 /* esm.sh - react@18.2.0 */ export * from "https://esm.sh/stable/react@18.2.0/esnext/react.js"; export { default } from "https://esm.sh/stable/react@18.2.0/esnext/react.js";
Please note that react is an arbitrary example. The issue was first encountered with @observablehq/stdlib, where the target causes the build to fail:
react
@observablehq/stdlib
$ curl -s -H "User-Agent: HeadlessChrome/109" https://esm.sh/@observablehq/stdlib@5.3.2 /* esm.sh - error */ throw new Error("[esm.sh] " + "esbuild: Transforming async generator functions to the configured target environment (\"es2015\") is not supported yet"); export default null;
The text was updated successfully, but these errors were encountered:
5c98a48
Sorry, something went wrong.
Thank you!
No branches or pull requests
Whenever the User-Agent header contains "HeadlessChrome", the build target "es2015" will be selected, regardless of the specified version:
Please note that
react
is an arbitrary example. The issue was first encountered with@observablehq/stdlib
, where the target causes the build to fail:The text was updated successfully, but these errors were encountered: