[wp-trac] [WordPress Trac] #50460: Don't minimize the `script-loader-packages.php` file
WordPress Trac
noreply at wordpress.org
Tue Jun 23 19:09:47 UTC 2020
#50460: Don't minimize the `script-loader-packages.php` file
------------------------------+-----------------------------
Reporter: desrosj | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Build/Test Tools | Version:
Severity: normal | Keywords: needs-patch
Focuses: |
------------------------------+-----------------------------
The `wp-includes/assets/script-loader-packages.php` file was added in
#48154 through [47352] as a means to automate the process of updating the
NPM packages from the Gutenberg repository (including dependencies and
versions) in a way that the packages would still be available through the
`wp_(enqueue|register)_scripts()`.
This works great, but the file is a single line return statement that
returns a multidimensional array, which makes it impossible to read
through without reformatting it.
I am proposing that the file not be minimized to one line in order to make
it human readable. This would have an added benefit of making the
changesets readable, allowing someone to view a changeset and understand
exactly what was changed or updated (see [47920], [47517], [47513]).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50460>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list