Skip to content

would you be open to updating core-js to latest ^3 version to get support for es2024 (node20) and further? #1246

Description

@iamstarkov

Set.difference was added in es2024, core-js got support for it in 3.0.0. Support for it was added in nodejs 22, Github Actions still run nodejs 20.

TypeError: Set.difference is not a function or its return value is not iterable

when running code with Set.difference on node20 while using default es2015 target while using latest ncc.

Its because ncc has core-js stuck at ^2.5.7 and latest core-js dependabot pr was closed over 3 years ago

I'd like to avoid manually embedding polyfills import "core-js/stable/set"; like 10 years ago before the times of @babel/preset-env which is powered by browserslist and core-js.

I understand you maybe busy with other projects, but would you be open to updating core-js to keep ncc relevant with latest ecmascript and nodejs releases? if you were, but have no time, let me know and I'll try do it myself

Activity

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