These are chat archives for systemjs/systemjs

3rd
Feb 2017
Robin Bank
@inquiztr
Feb 03 2017 15:06
could someone help me understand when polyfill is needed? I built an angular app in typescript and loaded by jspm/system. I understand systemjs will insert system-polyfil.js when needed, but i am confused if i still need babel-polyfil, the role of core-js in angular, and es6-shim. it seems they are all polyfilling the same things?
i ask because i am getting intermittent "Zone.js has detected that ZoneAwarePromise (window|global).Promise has been overwritten"
Gert Sønderby
@gertsonderby
Feb 03 2017 15:08
@inquiztr I added babel-polyfill when I found my app didn't work in IE. I think you should verify failure before adding polyfills, TBH.
Robin Bank
@inquiztr
Feb 03 2017 15:10
ok so in your case @gertsonderby why was babel-polyfil needed if systemjs has its own polyfil. my case is even more convoluted as i also introduce angular2 into the picture
Gert Sønderby
@gertsonderby
Feb 03 2017 15:11
@inquiztr I had breakage on Promise availability in IE11, which turned out to be due to the bundle being transpiled to work in newer browsers (i.e. Chrome, Firefox, Edge).
Robin Bank
@inquiztr
Feb 03 2017 15:12
but doesnt bundling itself convert your es6 code into es5 which should work on all browsers?
sans polyfils?
Gert Sønderby
@gertsonderby
Feb 03 2017 15:39
It depends on config, I think. Also didn't want to transpile to ES5 when it's only needed by a few specific customers.