vue is available as a ResourceLoader module from core (previously in wikibase only).
If the dependency to vue is externalized in termbox, the payload that needs to be shipped to clients can be reduced which helps loading time and bandwidth consumption (assuming the same client made use of another vue-based frontend component before).
Description
Details
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | guergana.tzatchkova | T247520 Use "vue" ResourceLoader module from core | |||
Resolved | Jakob_WMDE | T228528 Termbox: Use "vue" ResourceLoader module from core |
Event Timeline
Change 610715 had a related patch set uploaded (by Guergana Tzatchkova; owner: Guergana Tzatchkova):
[wikibase/termbox@master] Termbox: Use "vue" ResourceLoader module from core
Change 610749 had a related patch set uploaded (by Guergana Tzatchkova; owner: Guergana Tzatchkova):
[mediawiki/extensions/Wikibase@master] Termbox: Use "vue" ResourceLoader module from core
Change 610749 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] Termbox: Use "vue" ResourceLoader module from core
Change 610715 merged by Guergana Tzatchkova:
[wikibase/termbox@master] Termbox: Use "vue" ResourceLoader module from core
Reopening this ticket, as it seems incomplete and not working as intended.
- The termbox submodule pin in Wikibase wasn't updated. Production is now running an old termbox version from March that lists Vue as a dependency, but doesn't actually have it externalized.
- Even with the pin updated, the latest version doesn't seem to work in integration with Wikibase. Unless I'm doing something wrong, it seems that for termbox it isn't as easy as telling the build config to externalize the library. Termbox isn't yet following the init/app split as bridge or tainted references, so it may not know that it needs to require (commonjs) Vue.
I stumbled across this because I was trying to improve the termbox browser test after running into issues on a completely unrelated change. Current termbox master does not work in integration with Wikibase. As far as I know there aren't any user-facing changes in the making for termbox, but a broken master branch is not good. This needs to be looked into.
Change 628347 had a related patch set uploaded (by Jakob; owner: Jakob):
[wikibase/termbox@master] Build client-side for lib target commonjs
Change 628347 merged by jenkins-bot:
[wikibase/termbox@master] Build client-side for lib target commonjs
Change 628744 had a related patch set uploaded (by Jakob; owner: Jakob):
[mediawiki/extensions/Wikibase@master] Update termbox pin to latest master
Change 628744 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] Update termbox pin to latest master