Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URL polyfill for Safari 13+ #12089

Closed
dilyanpalauzov opened this issue Sep 20, 2020 · 3 comments
Closed

URL polyfill for Safari 13+ #12089

dilyanpalauzov opened this issue Sep 20, 2020 · 3 comments
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue

Comments

@dilyanpalauzov
Copy link

With these files bbb.json:

{
  "presets": [
    [
      "@babel/preset-env",
	{
	    "bugfixes": true,
	    "corejs": 3,
	    "modules": false,
	    "targets": "safari > 13.1", 
	    "useBuiltIns": "usage"
      }
    ]
  ]
}

and xxx.js:

new URL('https://x.y.z');

calling babel --config-file ./bbb.json xxx.js produces

import "core-js/modules/web.url";
new URL('https://x.y.z');

https://caniuse.com/url and https://caniuse.com/urlsearchparams have no concerns.

Why is the polyfill necessary for Safari?

@babel-bot
Copy link
Collaborator

Hey @dilyanpalauzov! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly.

If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite."

@nicolo-ribaudo
Copy link
Member

We use core-js-compat as the data source for core-js 3, please ask the question in the core-js repository.

Usually it's a browser bug that core-js fixes but isn't listed in caniuse.

@nicolo-ribaudo
Copy link
Member

Ok, it's needed for zloirock/core-js#656

@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Dec 22, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue
Projects
None yet
Development

No branches or pull requests

3 participants