babel / babel/website

@babel/preset-env, useBuiltIns: 'usage' and regeneratorRuntime

Open
#2,495 4 comments 4 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
777
Forks
1.4k
Avg merge
16h 45m
Merged PRs (30d)
3

Description

https://babeljs.io/docs/en/babel-preset-env#usebuiltins-usage says it adds polyfills. But I assume it also adds `regeneratorRuntime` (which is not a polyfill)? Should that be explicit somewhere in the `usage` part? Since I assume `usage` doesn't do anything else than to add `core-js` Polyfills and the funciton `regeneratorRuntime`?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the useBuiltIns: 'usage' section at the linked Babel preset-env documentation page and verify what it adds, including core-js polyfills and regeneratorRuntime. Update the documentation to state the behavior explicitly, with the wording considered done when the scope of usage is unambiguous.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.