exenv
exenv copied to clipboard
give canUseDOM with a possibility to be a constant
https://webpack.js.org/plugins/define-plugin/
Webpack's DefinePlugin has the ability to replace typeof expr to a constant in compile-time, which should lead to better dead-code-elimination.
(I've sent the same change to react https://github.com/facebook/react/pull/14194 )