Skip to content

[Bug]: @babel/runtime 7.18.2 contains a 'const' keyword, making it es5-incompatible #14586

@jlowcs

Description

@jlowcs

💻

  • Would you like to work on a fix?

How are you using Babel?

babel-loader (webpack)

Input code

N/A

Configuration file name

No response

Configuration

N/A

Current and expected behavior

afaik, @babel/runtime should not have to be processed by babel, and so should be ES5-compatible.

Environment

N/A

Possible solution

Replace const with var.

Additional context

The issue was apparently introduced by #14581

Metadata

Metadata

Assignees

No one assigned

    Labels

    i: regressionoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions