Skip to content

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

Open

Description

@thernstig

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?

Activity

  1. babel-bot commented on Apr 15, 2021

    @babel-bot
    Contributor

    Hey @thernstig! We really appreciate you taking the time to report an issue. The collaborators
    on this project attempt to help as many people as possible, but we're a limited number of volunteers,
    so it's possible this won't be addressed swiftly.

    If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack
    community
    that typically always has someone willing to help. You can sign-up here
    for an invite.

  2. limeandcoconut commented on May 3, 2021

    @limeandcoconut

    I'm confused about this same thing. Some clarification would be helpful.

  3. OriAlon commented on Aug 24, 2021

    @OriAlon
  4. zbrogz commented on Oct 8, 2021

    @zbrogz

    +1. The usage description should mention regeneratorRuntime, not just core-js.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions