Unable to compile Object.fromEntries -- polyfill required #968
Labels
kind: support
Asking for support with something or a specific use case
solution: intended behavior
This is not a bug and is expected behavior
solution: out-of-scope
This is out of scope for this project
Milestone
Current Behavior
I am building an NPM package for Node using the 'basic' template. I tried using
Object.fromEntries
in my code but get the error:Upon inspecting the
.cjs.development.js
output it leavesObject.fromEntries
untransformed which I guess are not supported in Node 10. I tried usingbuild --target node
which does not resolve it. Changingtarget
ontsconfig
also does not fix this.Expected behavior
Typescript or Babel should be able to compile
Object.fromEntries
Suggested solution(s)
Maybe a Babel plugin or polyfill is missing.
Additional context
Following is code snippet and transformed output
Code:
Transformed output
tsdx build
Your environment
The text was updated successfully, but these errors were encountered: