[wp-meta] [Making WordPress.org] #6723: Require source and map files for JS
Making WordPress.org
noreply at wordpress.org
Wed Feb 1 10:09:08 UTC 2023
#6723: Require source and map files for JS
------------------------------+--------------------
Reporter: kkmuffme | Owner: (none)
Type: enhancement | Status: new
Priority: high | Milestone:
Component: Plugin Directory | Keywords:
------------------------------+--------------------
One of the core values of WP is being an open ecosystem.
With more and more plugins using WP blocks or other JS (react), the amount
of plugins/themes shipped **without** core JS files and maps increases.
These plugins/themes are therefore a closed box - any console errors are
unactionable (since it's from minified JS without a map) and the plugin
can also not be extended easily (since the source code is obfuscated in
the minified JS)
Therefore I suggest that:
- plugins/themes listed in the directory must contain .map files for
minified/obfuscated JS
- plugins/themes listed in the directory must contain
unminified/unobfuscated source JS (or coffee/ts/...) files
- plugins/themes listed in the directory must not contain obfuscated PHP
(I think that's the case already now?)
This should obviously also apply for WP core.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/6723>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list