3 ms·
>React now supports two compiler optimizations that can be enabled in Babel 5.8.23 and newer. Both of these transforms should be enabled only in production ( A
by technion 11y ago
>React now supports two compiler optimizations that can be enabled in Babel 5.8.23 and newer. Both of these transforms should be enabled only in production (
Am I missing something about how you tell Babel to enable/disable these?
- spicyj 11y agoEnable them like you would enable or disable any other babel transformer, using the "optional" param in .babelrc (or --optional on the command line, etc).