I am converting React code to typescript, target in tsconfig is es5.
on running in IE 11 i get an error \"Promise is undefined\"
I know i need to polyfill,bu
Add this script:
After that you can test in the console if the Promise is working in IE
var promise = new Promise(function (resolve, reject) { setTimeout(function () { resolve('bar'); }, 1000); }); promise.then(function(result) { console.log(result); });