Skip to content
Discussion options

You must be logged in to vote

If you only need ES syntax retro-compatibility you can use this plugin https://github.com/marcofugaro/browserslist-to-esbuild
to use base Esbuild config on browserlist one (and thus be more easy/consistent than what's recommended in Quasar's docs https://quasar.dev/quasar-cli-vite/browser-compatibility)

BUT, this won't provide any support for new apis (In my case I want to use Object.hasOwn()) as explained here: https://esbuild.github.io/api/#target

Note that this is only concerned with syntax features, not APIs. It does not automatically add polyfills for new APIs that are not used by these environments. You will have to explicitly import polyfills for the APIs you need (e.g. by importing

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@luxi78
Comment options

Answer selected by luxi78
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants