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
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.
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-jsto 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