Player bundles imported by literal (clientExternals). Needs app 0.83.0. Release 0.7.0. #8

Closed
oliver.maklott wants to merge 0 commits from oliver.maklott/vendor-imports into main AGit

The client loaded its player bundles through computed import() specifiers, which the app's boundary check cannot verify; the pack had four entries on the check's exemption list.

  • island/vendor_load.ts imports /api/plugins/media/vendor/vidstack.js and /api/plugins/media/vendor/peertube.js by literal. Both are listed in plugin.devkit.json clientExternals, so the client build leaves them for the browser to load from the pack's own route.
  • The PeerTube bundle belongs to the media-peertube extension. vendor/peertube.js on this pack's route answers a redirect to it while the extension is registered and 404 otherwise; the client's iframe fallback covers the 404, as before.
  • Minimum app version is 0.83.0: the devkit option, and the app build's rule for such imports, ship with it.
  • The pack job's image pin moves from limedoc-dev 0.73.1 to 0.83.0 (digest in the workflow), the first image whose devkit knows clientExternals. Packing was smoke-tested in that image: the bundle keeps exactly the two literal imports. That image needs a keep rule in the registry, or the pin rots after five more app releases.

Tests: test:media 58 passed; vendor.test.ts checks that source and bundle import exactly the declared literals and that the redirect exists only with the extension.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PVUe4ghusFjH71tHhZetH2

The client loaded its player bundles through computed `import()` specifiers, which the app's boundary check cannot verify; the pack had four entries on the check's exemption list. - `island/vendor_load.ts` imports `/api/plugins/media/vendor/vidstack.js` and `/api/plugins/media/vendor/peertube.js` by literal. Both are listed in `plugin.devkit.json` `clientExternals`, so the client build leaves them for the browser to load from the pack's own route. - The PeerTube bundle belongs to the `media-peertube` extension. `vendor/peertube.js` on this pack's route answers a redirect to it while the extension is registered and 404 otherwise; the client's iframe fallback covers the 404, as before. - Minimum app version is 0.83.0: the devkit option, and the app build's rule for such imports, ship with it. - The pack job's image pin moves from limedoc-dev 0.73.1 to 0.83.0 (digest in the workflow), the first image whose devkit knows `clientExternals`. Packing was smoke-tested in that image: the bundle keeps exactly the two literal imports. That image needs a keep rule in the registry, or the pin rots after five more app releases. Tests: `test:media` 58 passed; `vendor.test.ts` checks that source and bundle import exactly the declared literals and that the redirect exists only with the extension. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01PVUe4ghusFjH71tHhZetH2
The player bundles are imported by literal (plugin.devkit.json clientExternals); vendor/peertube.js is the pack's own route, redirecting to the PeerTube extension while it is registered. Needs app 0.83.0. Release 0.7.0.
All checks were successful
Publish / dev-image (pull_request) Successful in 0s
Publish / test (pull_request) Successful in 1m17s
Publish / pack-and-publish (pull_request) Has been skipped
f48117958f
The computed imports needed an exemption in the app's boundary check.
The pack job's image is pinned to limedoc-dev 0.83.0, the first with
clientExternals.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PVUe4ghusFjH71tHhZetH2
oliver.maklott closed this pull request 2026-11-22 16:02:34 +01:00
All checks were successful
Publish / dev-image (pull_request) Successful in 0s
Publish / test (pull_request) Successful in 1m17s
Publish / pack-and-publish (pull_request) Has been skipped

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
limedoc-plugins/media!8
No description provided.