Search code examples
angulartypescriptpolyfillstsconfig

Angular tips to skip polyfills in case of a fixed target (Chrome 67)


I'm working on an Angular 6 project.

My target is really specific (Chrome 67), so are there any tips in order to exclude all the possible polyfills needed to other target browsers?

  • Could I switch my target prop in the tsconfig file to es6 ?
  • Could I remove the core-js library from my dependencies?

Thanks!


Solution

  • My target is really specific (Chrome 67), so are there any tips in order to exclude all the possible polyfills needed to other target browsers?

    If you are only using chrome 67 you can set target: es6 and remove the dependency on core-js.