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.
Bug Report
Current Behavior
The default value of
developmentin@babel/preset-reactis unexpected.Input Code
From the documentation:
Expected behavior/code
I'd expect the
developmentproperty 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.