[wp-trac] [WordPress Trac] #25244: Unminified versions of MediaElement.js and MediaElementPlayer not in core
WordPress Trac
noreply at wordpress.org
Fri Jan 2 06:21:52 UTC 2015
#25244: Unminified versions of MediaElement.js and MediaElementPlayer not in core
--------------------------------+-----------------------
Reporter: ericlewis | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone: 4.2
Component: External Libraries | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------------+-----------------------
Comment (by ericlewis):
We're not too far off from where we currently are.
WordPress-specific source JS files (i.e. un-minified versions) can be
loaded by toggling the SCRIPT_DEBUG constant
^[https://github.com/WordPress/WordPress/blob/4.1/wp-includes/script-
loader.php#L69 1]^.
Some third-party scripts (e.g. Backbone.js, all jQuery UI modules) will
only load the unminified version if loaded from the `src`
directory^[https://github.com/WordPress/WordPress/blob/4.1/wp-includes
/script-loader.php#L70 2]^.
I propose we bring in the source and unminified versions for all third-
party modules into the `src/` directory, and copy both in the build
process. After that, modify the script loader to respect SCRIPT_DEBUG to
the tee.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/25244#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list