Once T350054 is complete and basic code splitting is ready for use, we need to document how to use it.
Documentation
Since this is specific to using Codex in MediaWiki, the documentation should live on the Codex page on mediawiki.org. Docs should include:
- How to create a Codex subset in skin.json/extension.json (be sure to include requiring Vue as a dependency, since this used to be included via @wikimedia/codex)
- How to create a style- or script-only module
- How to import components from the generated virtual file
- Accommodations for test code (e.g. Jest config)
(Note that the above list is subject to change as the patch for T350054 changes.)
We should also finalize this merge request to implement code splitting in CodexExample, so we can use it as a reference.
Acceptance criteria
- Update the Codex page on mediawiki.org to include instructions and examples for implementing code splitting
- Update and merge the MR in CodexExample so we can link to CodexExample in the docs