Player bundles imported by literal (clientExternals). Needs app 0.83.0. Release 0.7.0. #8
Loading…
Reference in a new issue
No description provided.
Delete branch "oliver.maklott/vendor-imports"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.tsimports/api/plugins/media/vendor/vidstack.jsand/api/plugins/media/vendor/peertube.jsby literal. Both are listed inplugin.devkit.jsonclientExternals, so the client build leaves them for the browser to load from the pack's own route.media-peertubeextension.vendor/peertube.json 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.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:media58 passed;vendor.test.tschecks 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
Pull request closed