Disable dev warnings in production
Prior to this release, all warnings (such as when SFCs were passed as children, invalid animation presets were used, etc) would log regardless of environment. This patch ensures that these warnings are suppressed when process.env.NODE_ENV
is set to "production".
It also grants a minor perf win, as the check for logging SFC warnings involved iterating through the children. This work is no longer done in production.
Thanks to @AlexanderOtavka for their contribution!