core-js
definitions not fully injected with useBuiltIns: usage
#10910
Labels
Has PR
i: bug
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
pkg: preset-env
Bug Report
Current Behavior
When using
useBuiltIns: usage
withcore-js
to add support forPromise.any()
, I get aTypeError: getBuiltIn(...) is not a constructor
error. Seems it's due the fact babel is not adding theesnext.aggregate-error
require in transpiled code. By changinguseBuiltIns
toentry
and setting by hand bothcore-js/modules/esnext.aggregate-error
andcore-js/modules/esnext.promise.any
requires, transpilation works correctly. Seems to be related to #10883. More details at zloirock/core-js#737.Environment
System:
OS: Linux 5.3 Ubuntu 19.10 (Eoan Ermine)
Binaries:
Node: 13.3.0 - /usr/bin/node
npm: 6.13.1 - /usr/bin/npm
npmPackages:
@babel/cli: ^7.7.7 => 7.7.7
@babel/preset-env: ^7.7.7 => 7.7.7
babel-eslint: ^10.0.3 => 10.0.3
babel-jest: ^24.9.0 => 24.9.0
eslint: ^6.8.0 => 6.8.0
The text was updated successfully, but these errors were encountered: