C
C#ā€¢2y ago
joy

ā” async code in cshtml file of asp net framework that target IE browser

hi all, i understand that Internet Explorer arent' compatible with async/await, but is there an alternative to this if we want to handle asynchronous code (API request for example before we execute the next code) and our target website is Internet explorer, do we have to install babel into our asp net framework project?
11 Replies
Anton
Antonā€¢2y ago
I'm not sure they offer tools like that, I'd manage this manually with a separate node project with all of this configuration then you can add typescript, any polyfills you want, any linters you want, etc.
joy
joyā€¢2y ago
hmm... let me try it out..
Monsieur Wholesome
Monsieur Wholesomeā€¢2y ago
cshtml being server-side rendered, your async code wouldnt even ship to the IE browser šŸ¤Ø Ohhhhhhhhhhhhhhhhhhhhhhhhhh, we're talking JS' async-promise thingy?
Anton
Antonā€¢2y ago
yes
Monsieur Wholesome
Monsieur Wholesomeā€¢2y ago
wow
Unknown User
Unknown Userā€¢2y ago
Message Not Public
Sign In & Join Server To View
Anton
Antonā€¢2y ago
a lot of people keep using it
Angius
Angiusā€¢2y ago
Fuck them people They deserve the internet to be broken for them To answer your question, though: save yourself some sanity and just use Babel
joy
joyā€¢2y ago
i used babel but got so many issue on the visual studio
joy
joyā€¢2y ago
Accord
Accordā€¢2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.