Skip to content
New issue

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

Consider filtering out versions that cause ESBuild to fail #8

Closed
steveluscher opened this issue Nov 22, 2023 · 0 comments
Closed

Consider filtering out versions that cause ESBuild to fail #8

steveluscher opened this issue Nov 22, 2023 · 0 comments

Comments

@steveluscher
Copy link

evanw/esbuild@0e1696f added some code that skips over bad version numbers from caniuse. Unfortunately that doesn't apply to values you explicitly supply through the target config.

For instance, if you use browserslist-to-esbuild right now it is likely not to work because of the presence of the version safariTP.

[ERROR] Invalid version: "TP"

  All version numbers passed to esbuild must be in the format "X", "X.Y", or "X.Y.Z" where X, Y, and Z are non-negative integers.

Repro: https://esbuild.github.io/try/#dAAwLjE5LjcAe3RhcmdldDonc2FmYXJpVFAnfQA

Related: evanw/esbuild#3501

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant