developit / developit/microbundle
How to target browsers with es6 support?
- Langage dominant
- JavaScript
- Étoiles
- 8.1k
- Forks
- 358
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
I’ve looked at browser support for ES6 + async/await for our sites and as it looks transpiling to ES5 might not be worth it. It makes less than 1% difference in browser coverage. As a test I tried to find a browserslist config that allows this.
So far I’ve tried:
- `defaults and supports es6` → Still transpiles to ES5 (output is identical to `defaults`)
- `defaults and supports es6 and supports async-functions` → fails with an `error unknown Statement of type "ForOfStatement"` which might be some Babel bug.
Is there a way to use microbundle to bundle and minify JS and still have ES6 output?
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
No source file or test is named. Start by reproducing the listed browserslist configurations in microbundle and compare their minified output; done means microbundle can bundle and minify while preserving ES6 and async/await syntax for the requested browser targets.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- babel, javascript, rollup
- Domaine
- build-system, tooling
- Type d'issue
- Fonctionnalité
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 39/100