The whole if block should get removed. This is very useful for removing development only code blocks from production builds. Example:
if (process.env.NODE_ENV === 'development') {
// do stuff
}
// before minification this gets transformed into
if ('production' === 'development') {
// do stuff
}
In this example:
The whole
if
block should get removed. This is very useful for removing development only code blocks from production builds. Example: