angular / closure-demo

MIT License
114 stars 27 forks source link

Is there a way to include reflect polyfill? #9

Closed dmitrysteblyuk closed 7 years ago

dmitrysteblyuk commented 7 years ago

I tried to import 'core-js/es6/reflect' and 'core-js/es7/reflect' but closure compiler throws a runtime error when it tries to process those files.

Adding a polyfill directly to index.html doesn't help because property names of Reflect are uglified in a bundle.

Any ideas? Thank you.

dmitrysteblyuk commented 7 years ago

Ok, I got it. I had to write reflect externs. Now polyfill works like a charm.