Tempus Dominus v6.0 and IE11

218 Views Asked by At

I'm attempting to use the new Tempus Dominus 6 datepicker, which is great in Chrome but doesn't like IE11 because of the presence of class syntax.

Is Babel the only/best way of handling the incompatibility?

Our software is required to support IE11 in legacy environments - the organisations we provide for have thousands of machines which are only very slowly moving to modern browsers.

In this case, the latest version of Tempus Dominus removes reliance on momentjs and jquery, which would be of benefit to us if practicable.

1

There are 1 best solutions below

1
On

If you have to support IE compatibility with this plugin, then I think using Babel is a good choice. The main reason in IE11 is that it cannot parse es6 syntax (such as arrow function), so a transpiler like Babel is needed to make it work.

Is Babel the only/best way of handling the incompatibility?

As far as I know, Babel works with most front-end frameworks to support site compatibility within IE 11, I think this is because of the advantages of Babel itself that makes it so popular.