[wp-trac] [WordPress Trac] #45535: Unminified react and react-dom
WordPress Trac
noreply at wordpress.org
Thu Dec 20 06:54:23 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: | Focuses: javascript
---------------------------+------------------------------
Comment (by Frank Klein):
This should be fixed because:
1. Core breaks with a convention established by the Gutenberg plugin, see
[https://github.com/WordPress/gutenberg/blob/8790bce7ae56191d00fe7384ea1832df10624961/lib
/client-assets.php#L604 lib/client-assets.php].
2. Whether a script is minified or not doesn't change its functionality.
But React has a production version and a development version, which differ
a lot. And the production version does not have any debugging helpers in
it, which makes block development in Core impossible.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45535#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list