This task encompasses the work to Webpackify the mediawikit.template.hogan module across two patches:
- Split out the mobile.runtime build product to a distinct module
- Pack mediawikit.template.hogan with Hogan v2.0.0. Unlike other modules, the new module should not export Hogan itself since its side-effect only and all usages are via mw.template, and doing so would inhibit Webpack's ability to optimize outputs.
[ ] Per developer notes, I'd like to hold off making this change until we've done T206027 since I'd like us to keep reducing the amount of RL modules .
[ ] Let's also get T205582 done given risk of errors
= Developer notes
The introduction of any module to MobileFrontend will be met with suspicion by the performance team. Ideally any change here should not increase the number of ResourceLoader modules (or should be done at a time when MobileFrontend has far less than the current [[ https://www.mediawiki.org/wiki/Reading/Web/Projects/Invest_in_the_MobileFrontend_%26_MinervaNeue_frontend_architecture/Progress?useskin=vector | 60 ]]).
- Diff the NPM 2.0.0 (unminified) release with libs/hogan.js/hogan.js to verify the version is correct.