You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Platform checks should be done at build time instead of runtime #384
👍 I wonder how clever uglifyjs is at detecting and removing dead code. Like, if we use webpack's subsitution stuff to substitute something like __WINDOWS__ and __DARWIN__ for boolean constants I'd expect it to remove code which looks like
if(false){ ... }
But I know we saw some warnings from uglify early on, can't quite remember if they were about dead code tho.
Activity
niik commentedon Sep 23, 2016
👍 I wonder how clever uglifyjs is at detecting and removing dead code. Like, if we use webpack's subsitution stuff to substitute something like
__WINDOWS__and__DARWIN__for boolean constants I'd expect it to remove code which looks likeBut I know we saw some warnings from uglify early on, can't quite remember if they were about dead code tho.
joshaber commentedon Sep 23, 2016
Yup, it should. For example, when
__DEV__isfalse: