poly-mini-game icon indicating copy to clipboard operation
poly-mini-game copied to clipboard

IE 11 support

Open hitesh97 opened this issue 7 years ago • 1 comments

Hi Jecelyn Yeen, Thanks for this sample project, I came across this when I was trying out Polymer 3 with Typescript. I am trying to get this to work with IE11, but was not having much luck. as Typescript is compiled down to ES6 modules and transpiled to eS6, arrow functions are not supported by IE11 by default.

I tried, to use,

  1. Babel-loader
  2. Babel-polyFill and presets,

however, I dont seem to get it right for IE 11.

I wonder if you can help/add support for IE11 on this project to help figure out what would be needed to make this game work on IE11?

Your help would be much appreciated.

hitesh97 avatar Oct 30 '17 15:10 hitesh97

Hi @chybie

I've created a cut-down version of the issue here: github.com/mcalthrop/polymer3-typescript-ie11.

For some reason arrow functions are not being transpiled into ES5, and IE11 does not support arrow functions, so it throws an error.

I am sure the issue must be easily fixable, but can't figure it out!

kind regards

Matt

mcalthrop avatar Oct 30 '17 20:10 mcalthrop