Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does Babel not provide URLSearchParams polyfill for IE11

I'm using Webpack + Typescript + Babel with Babel-Loader. Config useBuiltIns: 'usage'

In my code I have some places where I use URLSearchParams. But it seems that Babel is not polyfilling UrlSearchParmas for IE11. I thought I do not worry about any polyfills with babel. (Other polyfills are working for IE11) Is that a normal behaviour or is there something wrong in my code?

I'm not importing anything on my files using URLSearchParams. Maybe babel can not recognize it for this reason?

like image 901
Daniel R Avatar asked Feb 13 '19 09:02

Daniel R


1 Answers

I've asked the question directly on babel github page. corejs3 will include a polyfill for url search params. Somebody need to review the PR to update corejs3 in babel.

https://github.com/babel/babel/issues/9667

like image 56
Daniel R Avatar answered Oct 12 '22 12:10

Daniel R