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

Why string.replaceAll was polyfilled by esnext.string.replaceAll when setting useBuiltIns: entry #107

Open
maoxiaoke opened this issue Oct 27, 2021 · 1 comment

Comments

@maoxiaoke
Copy link

Here is my @babel/preset-env settings:

{
    "presets": [
    [
      "@babel/preset-env",
      {
        "useBuiltIns": "usage",
	 "corejs": 3
      }
    ]
  ],
  "targets": {
    "chrome": "58",
    "ie": "11"
  }
}

And I found usageGlobal inject polyfill within esnext.string.replaceAll as fallback, while entryGlobal not.

I'm really curious about this. Could someone explain this to me?

@zloirock
Copy link
Member

What about corejs: '3.19'?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants