aboutsummaryrefslogtreecommitdiffstats
path: root/resources/src/oojs-global.js
Commit message (Collapse)AuthorAgeFilesLines
* resourceloader: Implement modern module loading (2/2)jdlrobson2016-04-131-0/+2
* 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