Skip to content

The default value of development in @babel/preset-react is unexpected. #8902

Description

@vzaidman

Bug Report

Current Behavior
The default value of development in @babel/preset-react is unexpected.

Input Code
From the documentation:

development
boolean, defaults to false.

Expected behavior/code
I'd expect the development property to default to:

process.env.BABEL_ENV === 'development' || process.env.NODE_ENV === 'development'

And if anybody wants to turn it off / on manually let them do it. I think not many people use it right now because they expect it's on by default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: reactoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions