Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

How to target browsers with es6 support?

Open
#942 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
39/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
babel, javascript, rollup

Research direction

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.

Written by the indexing model from the issue text.

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?

Dominant language
JavaScript
Stars
8.1k
Forks
358
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from developit/microbundle

All issues in developit/microbundle

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.