Page MenuHomePhabricator

Add CJS build with entry points for every component
Closed, ResolvedPublic3 Estimated Story Points

Description

In addition to the single-file UMD build, the UMD codex-search build (which will be moved into the Codex package by T335324) and the ESM build (which will be split into smaller chunks by T345687), we need to add a many-file CJS build that provides an entry point for every component and every composable (every thing that is exported by lib.ts).

  • There is an entry point file for each component/composable/other thing exported by the library
  • Chunk file names do not contain hashes
  • A manifest.json file is included (plus manifest-rtl.json, manifest-legacy.json and manifest-legacy-rtl.json)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

A lot of this work has already been done in https://gerrit.wikimedia.org/r/c/design/codex/+/943652 and just needs to be polished a bit further.

Change 958597 had a related patch set uploaded (by Eric Gardner; author: Eric Gardner):

[design/codex@main] build: Generate Codex bundles for every component

https://gerrit.wikimedia.org/r/958597

Change 958596 had a related patch set uploaded (by Catrope; author: Eric Gardner):

[design/codex@main] build: Replace UMD build with CJS

https://gerrit.wikimedia.org/r/958596

Change 958596 merged by jenkins-bot:

[design/codex@main] build: Prefer CJS build to UMD for most usage

https://gerrit.wikimedia.org/r/958596

Change 958597 merged by jenkins-bot:

[design/codex@main] build: Generate Codex bundles for every component

https://gerrit.wikimedia.org/r/958597

Change 961452 had a related patch set uploaded (by VolkerE; author: VolkerE):

[mediawiki/core@master] Update Codex from v0.19.0 to v0.20.0

https://gerrit.wikimedia.org/r/961452