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
The workaround done by 1ac9113 (where the minified version of React is edited by hand in order to put back some object literals) is rather gross.
Ideally there would be a way of generating an alternate minified version of React where the quotes are left in (and in general most minification steps can be skipped, since the Closure Compiler will do them too -- main thing to do is to do the __DEV__ replacement so that the build runs in production mode).
The text was updated successfully, but these errors were encountered:
My goal is that we always minify React with Closure Compiler but also generate a result that is compatible with another pass. This requires us to change patterns in a few places. For example, avoiding to use objects as Maps and instead use a proper Map abstraction.
I think we need the infrastructure to run tests to ensure that neither of these passes break. E.g. by running our Travis tests both before and after Closure Compiler minification.
Obsolete given the dropping of Closure Compiler advanced optimizations support altogether in 15.4. Should be revisited if facebook/react#11092 is reopened.
The workaround done by 1ac9113 (where the minified version of React is edited by hand in order to put back some object literals) is rather gross.
Ideally there would be a way of generating an alternate minified version of React where the quotes are left in (and in general most minification steps can be skipped, since the Closure Compiler will do them too -- main thing to do is to do the
__DEV__
replacement so that the build runs in production mode).The text was updated successfully, but these errors were encountered: