Skip to content

Remove usage of process.env.NODE_ENV in ES module build #2907

@keanulee

Description

@keanulee

Do you want to request a feature or report a bug?

Feature

What is the current behavior?

The ES module build of Redux references process.env.NODE_ENV which doesn't exist on browsers. With unpkg.com's ?module query param that converts package names to paths, this is the only issue blocking users from loading Redux as a module from the browser.

See references to process.env.NODE_ENV in:

What is the expected behavior?

No references to process.env.NODE_ENV in the ES module build.

Demo: http://jsbin.com/tazoliy/edit?html,output

Metadata

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