Hacker News new | ask | show | jobs
by Solvitieg 2704 days ago
How does this happen when you compile through Babel?
1 comments

Babel (specifically, babel-preset-env, which I assume you're referring to) only ensures that your code's syntax can run within a given browser. It doesn't make sure all the web APIs and browser features you take advantage of are compatible, or that they produce the same result.