resourceloader: Add minified version of mw.loader.implement() wrapper
authorTimo Tijhof <krinklemail@gmail.com>
Mon, 29 Jan 2018 23:30:23 +0000 (15:30 -0800)
committerTimo Tijhof <krinklemail@gmail.com>
Mon, 29 Jan 2018 23:30:23 +0000 (15:30 -0800)
commit15e195a177d828c300bb37f2508a88b087b52eb1
tree6a0f5d914b9f81239eddf364b5a9a1e611d7f167
parentba1da92650a9405df4459b21fd97c734496bec01
resourceloader: Add minified version of mw.loader.implement() wrapper

Follows-up b7eb243d92, which changed minification to be per-module,
but had as result that the little implement() wrapper is not always
minified, e.g. when outputting modules that have minification disabled
(such as 'user.tokens' and 'user.options').

Rather than introducing some complex minification cache for the
wrapper (with a find and replace for the variable content), simply
add a hardcoded minified version of the wrapper.

Change-Id: Iccf0d3408beab4387031cc55689394ff67e1e64b
includes/resourceloader/ResourceLoader.php