Skip to content

[improvement] we can provide a convenient tips that can show current project do not support some EcmaScipt, and guide user update related packages #139

Open
@869288142

Description

when i see Object.hasOwn, I try it in my project, but I do not know if it can be support. I analyse @babel/preset-env and find @babel/helper-define-polyfill-provider. I find entry or usage-global or usage-pure both call @babel/helper-define-polyfill-provider 's shouldInjectPolyfill methods. in this, we can console tips to guide users what EcmaScript is not support and what to do that user to do. for example

image

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions