Some extensions register additional resource loader modules when VisualEditor is installed. The MediaWiki extension registry system does not support optional/conditional registrations yet, hence that has been done via the hook ResourceLoaderRegisterModules.
https://gerrit.wikimedia.org/r/#/c/316508/ is a proposal that will eventually add conditional registration in extension.json , once done we should migrate extensions that are using plain PHP, non exhaustive list:
Extension | Change |
---|---|
Cite | https://gerrit.wikimedia.org/r/#/c/316010/ |
GuidedTour | https://gerrit.wikimedia.org/r/#/c/305691/ |
SyntaxHighlight_GeSHi | https://gerrit.wikimedia.org/r/#/c/333580/ |