* Send 'module' and 'require' parameters to module closures.
This depends on Ia925844cc22f143 being deployed one cycle earlier.
* Patch Moment and OOjs to ensure these libraries continue to expose
their module as globals as well. AMD/UMD-compatible libraries
only expose a global *OR* an export, not both. We need both
for back-compat.
* Update pluralRuleParser to make use of module export to allow
usage via require().
To test, check out the patch and run:
> mw.loader.load('moment');
> mw.loader.require('moment')()
> mw.loader.require('moment')('2011-04-01').fromNow()
Bug: T108655
Change-Id: Idbd054880ee70d659ec760aef8fcb38d0704a394
|
||
|---|---|---|
| .. | ||
| templates | ||
| DerivativeResourceLoaderContextTest.php | ||
| MessageBlobStoreTest.php | ||
| ResourceLoaderFileModuleTest.php | ||
| ResourceLoaderImageModuleTest.php | ||
| ResourceLoaderImageTest.php | ||
| ResourceLoaderModuleTest.php | ||
| ResourceLoaderStartUpModuleTest.php | ||
| ResourceLoaderTest.php | ||
| ResourceLoaderWikiModuleTest.php | ||