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

esbuild is not compatible with browserslist output #19

Open
JuanJoseGonGi opened this issue May 18, 2021 · 4 comments
Open

esbuild is not compatible with browserslist output #19

JuanJoseGonGi opened this issue May 18, 2021 · 4 comments

Comments

@JuanJoseGonGi
Copy link

I get this error trying to serve vue app
esbuild-minify ERROR Error: Invalid target: "and_chr90" (valid: esN, chromeN, edgeN, firefoxN, iosN, nodeN, safariN)

This is because esbuild does not support the same targets returned from browserslist.

There are some workarounds on this issue evanw/esbuild#121

@Djaler
Copy link
Owner

Djaler commented May 18, 2021

@zoranpopovic
Copy link

is there a workaround for this in the meantime?

@Djaler
Copy link
Owner

Djaler commented May 22, 2021

You can specify your browserslist now only using specific (supported by esbuild) browsers

@ferm10n
Copy link

ferm10n commented Nov 1, 2022

To use this workaround, is there an example browserslist query that will give esbuild compatible targets?

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

No branches or pull requests

4 participants