[wp-trac] [WordPress Trac] #45535: Unminified react and react-dom

WordPress Trac noreply at wordpress.org
Sat Dec 8 12:19:51 UTC 2018


#45535: Unminified react and react-dom
---------------------------+------------------------------
 Reporter:  emilushi       |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Script Loader  |     Version:  5.0
 Severity:  normal         |  Resolution:
 Keywords:  needs-patch    |     Focuses:  javascript
---------------------------+------------------------------

Comment (by emilushi):

 Thanks for the information.
 I now understand it clear, then it means is needed to add another
 condition for cases when using stable release with `SCRIPT_DEBUG` to
 `true`


 Replying to [comment:1 afercia]:
 > @emilushi that line of code is meant for the development trunk version,
 where the version is always identified with a `-src` suffix. For example:
 >
 > `$wp_version = '5.1-alpha-43677-src'`
 >
 > Instead, stable versions have just the version number:
 >
 > `$wp_version = '4.9.8';`
 >
 > This is intentional so that the trunk version always uses the non
 minified files.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45535#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list