Skip to content

Excluding es.json.stringify does not work #180

Open
@mohd-akram

Description

@mohd-akram

Config:

{
  "plugins": [
    ["polyfill-corejs3", { "method": "usage-pure", "exclude": ["es.json.stringify"] }]
  ]
}

Input:

JSON.stringify({});

Expected output:

JSON.stringify({});

Actual output:

import _JSON$stringify from "core-js-pure/stable/json/stringify.js";
_JSON$stringify({});

Activity

linked a pull request that will close this issue on Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @mohd-akram

      Issue actions

        Excluding `es.json.stringify` does not work · Issue #180 · babel/babel-polyfills