Skip to content

Dev build doesn't include Set polyfill #3275

@Ismael

Description

@Ismael

React 16 requires Set.
I'm developing for an older browser which does not have Set. In production mode, the project works. In dev mode, I get an Set is undefined error.

I'm importing babel-polyfill at the top of my index.js, but that doesn't work.
I tried importing core-js/es6/set directly and didn't work either.

How can I make sure the dev build includes support for legacy browsers?

Also, maybe you should include Set by default in the polyfills as this is required by React 16?

https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#supported-language-features-and-polyfills

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions