The 4 modules loaded on MobileOptions, MobileDiff and UserLogin and all mobile pages (mobile.init) are relatively simple. It should be trivial to port these to webpack. None of them have tests.
= Acceptance criteria
[] The code in mobile.special.mobileoptions.scripts (no deps) is built via webpack
[] The code in mobile.special.mobilediff.scripts is built via webpack
[] The code in mobile.special.userlogin.scripts is built via webpack
[] The code in mobile.init is built via webpack
[] The code in mobile.startup has not grown in any substantial way. Consider introducing a new module mobile.special.scripts (to mirror mobile.special.styles) modules if this becomes a problem that can be shared across all special pages.
[] The module mobile.watchlist has been removed (no need to worry about caching!).
[] The tests in mobile.watchlist are run inside webpack
[] mobile.special.watchlist.scripts has dependencies mobile.scrollEndEventEmitter and mobile.startup
= Sign off steps
We have now ported our first special page JavaScript module to webpack! \o/
[ ] [[ https://www.mediawiki.org/wiki/Reading/Web/Projects/Invest_in_the_MobileFrontend_%26_MinervaNeue_frontend_architecture/Progress?useskin=vector | Progress ]] is updated.