exenv icon indicating copy to clipboard operation
exenv copied to clipboard

give canUseDOM with a possibility to be a constant

Open gfx opened this issue 7 years ago • 0 comments

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 )

gfx avatar Nov 12 '18 02:11 gfx