Angular 5 transpiling without support for IE11 (Object.values is not converted)

Viewed 380

We are noticing that in a service we had a failure to transform Object.values in code like:

myMethod(items = Object.values(this.config)) {

so, it would stay that way even when rendered in ie 11... we obviously need to configure the render targets to include ie 11 (ie 11 has Object.keys but no Object.values). How do I do that?

1 Answers

You need polyfills for core-js/es7/object.js.

  • Object.getOwnPropertyDescriptors
  • Object.values
  • Object.entries

Is part of this polyfill.

import 'core-js/es7/object';
Related