developit / developit/microbundle
How to target browsers with es6 support?
未关闭
- 主要语言
- JavaScript
- 星标
- 8.1k
- 派生
- 358
- PR 合并指标
- 30 天内没有已合并 PR
描述
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?
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。