Skip to content
This repository was archived by the owner on Oct 21, 2026. It is now read-only.

feat(video.js): load Video.js 8 from unversioned CDN URLs - #3197

Closed
mihar-22 wants to merge 5 commits into
t3code/publish-video-js-latestfrom
t3code/video-js-v8-cdn-redirects
Closed

mihar-22 wants to merge 5 commits into
t3code/publish-video-js-latestfrom
t3code/video-js-v8-cdn-redirects

Conversation

@mihar-22

@mihar-22 mihar-22 commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

Closes #2763
Refs #3156

Summary

Unversioned CDN URLs such as https://unpkg.com/video.js/dist/video.min.js follow npm's latest tag, and the v8 README recommends that exact URL. Once #3156 publishes video.js@10 under latest, those pages would get a 404 for the player and an empty stylesheet. This PR puts a small redirect at every Video.js 8 script and stylesheet path in video.js@10. Each one loads the same file from video.js@8 on the same CDN, so those pages keep running v8.

Changes

  • 62 script and 4 stylesheet redirects in dist/, generated at build time from the paths in a pinned video.js-8 devDependency (npm:video.js@8.24.1).
  • Each script reads its own URL, swaps /video.js/dist/ (or /video.js@<anything>/dist/) for /video.js@8/dist/, and loads v8 before the page's next script runs:
    • Plain <script src> tags: document.write, copying the page's nonce.
    • async, defer, and loads from page code: a synchronous request plus indirect eval, so the tag's load event still means videojs exists.
    • A CSP that blocks eval: a script tag, so v8 still loads, but late.
    • URLs it can't recognize, such as cdnjs: jsDelivr.
  • Each stylesheet @imports the v8 stylesheet by relative URL, with no script involved.
  • Each page logs one console warning to pin video.js@8.
  • Bundlers still resolve video.js/dist/video-js.css to an empty stylesheet. The exports entry now points at dist/empty.css, because CDNs ignore exports and serve the redirect at the literal path.
  • The README, the package AGENTS.md, and the migration guide tell v8 CDN users to pin video.js@8.
Why redirects instead of copying v8's files, as #2763 proposed

Since #3132, @videojs/core depends on video.js, so a copy of v8's files would land in every @videojs/html and @videojs/react install:

Copy v8's files Redirects (this PR)
Added download (.tgz) ~2.7 MB +5.7 KB (10.1 → 15.9 KB)
Added unpacked ~12 MB +111 KB (48 → 160 KB, 27 → 93 files)
v8 fixes Frozen at the copied version Newest 8.x, through @8
Loading Byte for byte One extra request per file

Known gaps:

  • A CSP that blocks eval, combined with page code that waits for the script's onload: v8 loads, but after the callback.
  • cdnjs URLs: scripts fall back to jsDelivr, and stylesheets 404. cdnjs URLs always include a version, so this only affects someone who picks a 10.x version there.
  • v8's language .json files and font files aren't redirected. v8's CSS has its font built in.
  • Chrome blocks document.write for uncached cross-origin scripts on 2G connections. Not tested.
  • Firefox logs a deprecation warning for the synchronous request on the async, defer, and page-code paths.

Testing

  • pnpm exec vp run '@videojs/e2e#test:video-js-cdn': a new suite with 12 tests, each run in Chromium, Firefox, and WebKit. It packs video.js and serves the tarball next to the pinned v8 release, laid out like unpkg (with its redirects) and like jsDelivr. A new E2E job runs it when packages/video.js, the suite, the workflow, or the lockfile changes.
    • Mutation-checked: dropping document.write, skipping the synchronous request, or rewriting to the wrong path each make tests fail.
  • pnpm -F video.js test: adds a check that video.js/dist/video-js.css resolves through exports to a stylesheet with no rules. It fails if the export points back at the redirect.
  • A prototype of the redirect also passed against the real unpkg and jsDelivr in all three engines, with the redirect files served at their unversioned URLs and video.js@8 loading live.
  • pnpm typecheck, pnpm lint, pnpm check:workspace, and pnpm -F site test diataxis.

Before merge

🤖 Generated with Claude Code


Note

Medium Risk
Published video.js CDN assets now execute redirect logic (including sync XHR/eval and document.write), which affects any site still using unversioned v8 CDN URLs once v10 is latest.

Overview
When video.js@10 becomes npm latest, unversioned CDN URLs (for example unpkg.com/video.js/dist/video.min.js) would serve a package with no player. This PR generates redirect stubs at every v8 dist/ script and stylesheet path in the published video.js@10 tarball so those URLs still load Video.js 8 from video.js@8 on the same CDN, with a one-time console warning to pin @8.

Script redirects use document.write for parser-inserted tags, sync fetch + eval for async/defer/dynamic loads, and a script-tag fallback when CSP blocks eval; stylesheets @import the v8 file. Bundlers keep resolving video.js/dist/video-js.css to an empty file via exports (empty.css), while CDNs get the redirect at the literal path. A build plugin copies the template from a pinned video.js-8 devDependency.

CI and tests: a new video-js-cdn Playwright suite (Chromium, Firefox, WebKit) mocks unpkg/jsDelivr/cdnjs-style routing, plus an E2E workflow job and path-based change detection. Docs (README, agent guide, migration guide) tell v8 CDN users to version-pin.

Reviewed by Cursor Bugbot for commit 7cbae48. Bugbot is set up for automated code reviews on this repo. Configure here.

mihar-22 and others added 3 commits October 5, 2026 20:45
Unversioned CDN URLs such as https://unpkg.com/video.js/dist/video.min.js follow npm's `latest` tag,
so publishing video.js@10 there would turn existing Video.js 8 pages into 404s and empty styles.

The build now writes a small redirect at every v8 script and stylesheet path in `dist/`, listed from
a pinned `video.js-8` devDependency. Scripts load the same path from video.js@8 on the CDN that
served them: `document.write` for parser-inserted tags, a synchronous request plus indirect eval for
async, deferred, and page-code loads, and a script tag when a CSP blocks eval. Stylesheets `@import`
the v8 file by relative URL. Each page logs one warning to pin video.js@8.

Bundlers keep resolving `video.js/dist/video-js.css` to an empty stylesheet, now `dist/empty.css`
through `exports`, because CDNs serve the literal path to the redirect.

Refs #2763

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A new `video-js-cdn` suite packs `video.js`, serves the tarball the way unpkg and jsDelivr serve the
`latest` tag next to the pinned Video.js 8 release, and loads v8 embeds through it in Chromium,
Firefox, and WebKit: the v8 README embed per URL prefix, the alt and unminified builds,
`data-setup`, async, defer, page-code loads, a nonce-based CSP, a CSP that blocks eval, and an
unrecognized CDN.

Pages load from `localhost` and CDN files from `127.0.0.1`, so they stay cross-origin without a
public origin; Chromium holds public-to-loopback requests for a Local Network Access prompt.

E2E runs it on pushes to main and on pull requests that touch `packages/video.js`, the suite, the
workflow, or the lockfile.

Refs #2763

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The migration guide's intro now tells v8 pages that load from an unversioned CDN URL that those
paths redirect to video.js@8, and to pin video.js@8 in the URL to skip the redirect.

Refs #2763

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
v10-sandbox Ready Ready Preview Oct 6, 2026 3:53am UTC

Request Review

@pkg-pr-new

pkg-pr-new Bot commented Oct 6, 2026

Copy link
Copy Markdown
@videojs/cdn

pnpm add https://pkg.pr.new/@videojs/cdn@3197

@videojs/cli

pnpm add https://pkg.pr.new/@videojs/cli@3197

@videojs/core

pnpm add https://pkg.pr.new/@videojs/core@3197

@videojs/element

pnpm add https://pkg.pr.new/@videojs/element@3197

@videojs/html

pnpm add https://pkg.pr.new/@videojs/html@3197

@videojs/media

pnpm add https://pkg.pr.new/@videojs/media@3197

@videojs/react

pnpm add https://pkg.pr.new/@videojs/react@3197

@videojs/spf

pnpm add https://pkg.pr.new/@videojs/spf@3197

@videojs/store

pnpm add https://pkg.pr.new/@videojs/store@3197

@videojs/utils

pnpm add https://pkg.pr.new/@videojs/utils@3197

video.js

pnpm add https://pkg.pr.new/video.js@3197

@videojs/cloudflare-video

pnpm add https://pkg.pr.new/@videojs/cloudflare-video@3197

@videojs/dash-video

pnpm add https://pkg.pr.new/@videojs/dash-video@3197

@videojs/hlsjs-video

pnpm add https://pkg.pr.new/@videojs/hlsjs-video@3197

@videojs/mux-audio

pnpm add https://pkg.pr.new/@videojs/mux-audio@3197

@videojs/mux-video

pnpm add https://pkg.pr.new/@videojs/mux-video@3197

@videojs/native-hls-video

pnpm add https://pkg.pr.new/@videojs/native-hls-video@3197

@videojs/shaka-video

pnpm add https://pkg.pr.new/@videojs/shaka-video@3197

@videojs/spotify-audio

pnpm add https://pkg.pr.new/@videojs/spotify-audio@3197

@videojs/tiktok-video

pnpm add https://pkg.pr.new/@videojs/tiktok-video@3197

@videojs/twitch-video

pnpm add https://pkg.pr.new/@videojs/twitch-video@3197

@videojs/vimeo-video

pnpm add https://pkg.pr.new/@videojs/vimeo-video@3197

@videojs/wistia-video

pnpm add https://pkg.pr.new/@videojs/wistia-video@3197

@videojs/youtube-video

pnpm add https://pkg.pr.new/@videojs/youtube-video@3197

@videojs/google-cast

pnpm add https://pkg.pr.new/@videojs/google-cast@3197

@videojs/mux-data

pnpm add https://pkg.pr.new/@videojs/mux-data@3197

commit: e69be76

@netlify

netlify Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for vjs10-site ready!

Name Link
🔨 Latest commit 7cbae48
🔍 Latest deploy log https://app.netlify.com/projects/vjs10-site/deploys/6ac4707a29e1780008291b66
😎 Deploy Preview https://deploy-preview-3197--vjs10-site.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for vjs-registry canceled.

Name Link
🔨 Latest commit 7cbae48
🔍 Latest deploy log https://app.netlify.com/projects/vjs-registry/deploys/6ac4707a68ee9e00085dc58f

@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

📦 Bundle Size Report

🎨 @videojs/html — no changes
Presets (7)
Entry Initial Lazy
/video (default) 65.17 kB 56.03 kB
/video (default + hls) 67.02 kB 56.03 kB
/video (neutral) 65.64 kB 56.03 kB
/video (neutral + hls) 67.39 kB 56.03 kB
/audio (default) 49.10 kB 56.03 kB
/audio (neutral) 49.41 kB 56.03 kB
/background 12.76 kB 56.03 kB
Media (18)
Entry Initial
/media/mux-video 3.03 kB
/media/mux-audio 2.71 kB
/media/background-video 1.17 kB
/media/cloudflare-video 2.91 kB
/media/dash-video 2.63 kB
/media/hls-audio 23.54 kB
/media/hls-background-video 17.56 kB
/media/hls-video 33.95 kB
/media/hlsjs-video 2.64 kB
/media/mux-background-video 17.58 kB
/media/native-hls-video 7.54 kB
/media/shaka-video 2.64 kB
/media/spotify-audio 3.03 kB
/media/tiktok-video 3.14 kB
/media/twitch-video 2.94 kB
/media/vimeo-video 2.92 kB
/media/wistia-video 615 B
/media/youtube-video 2.91 kB
Players (5)
Entry Initial Lazy
/video/player 10.85 kB 56.03 kB
/audio/player 7.05 kB 56.03 kB
/background/player 5.34 kB 56.03 kB
/live-video/player 10.23 kB 56.03 kB
/live-audio/player 7.06 kB 56.03 kB
Skins (41)
Entry Type Initial Lazy
/video/compat-skin.css css 7.48 kB —
/video/neutral-skin.css css 8.33 kB —
/video/skin.css css 8.05 kB —
/video/compat-skin js 62.38 kB 56.03 kB
/video/compat-skin2 js 7.45 kB —
/video/neutral-skin js 63.35 kB 56.03 kB
/video/neutral-skin2 js 8.32 kB —
/video/skin js 62.96 kB 56.03 kB
/video/skin2 js 8.02 kB —
/audio/compat-skin.css css 6.13 kB —
/audio/neutral-skin.css css 6.07 kB —
/audio/skin.css css 5.80 kB —
/audio/compat-skin js 53.99 kB 56.03 kB
/audio/compat-skin2 js 6.13 kB —
/audio/neutral-skin js 47.08 kB 56.03 kB
/audio/neutral-skin2 js 6.05 kB —
/audio/skin js 46.80 kB 56.03 kB
/audio/skin2 js 5.78 kB —
/background/skin.css css 141 B —
/background/skin js 10.18 kB 56.03 kB
/background/skin2 js 159 B —
/live-video/compat-skin.css css 6.92 kB —
/live-video/neutral-skin.css css 6.82 kB —
/live-video/skin.css css 6.72 kB —
/live-video/compat-skin js 53.71 kB 56.03 kB
/live-video/compat-skin2 js 6.91 kB —
/live-video/neutral-skin js 50.96 kB 56.03 kB
/live-video/neutral-skin2 js 6.82 kB —
/live-video/skin js 50.87 kB 56.03 kB
/live-video/skin2 js 6.72 kB —
/live-audio/compat-skin.css css 5.63 kB —
/live-audio/neutral-skin.css css 4.77 kB —
/live-audio/skin.css css 4.67 kB —
/live-audio/compat-skin js 40.92 kB 56.03 kB
/live-audio/compat-skin2 js 5.64 kB —
/live-audio/neutral-skin js 36.30 kB 56.03 kB
/live-audio/neutral-skin2 js 4.77 kB —
/live-audio/skin js 36.20 kB 56.03 kB
/live-audio/skin2 js 4.66 kB —
/global.css css 239 B —
/shadow.css css 78 B —
UI Components (62)
Entry Initial Lazy
/ui/airplay-button 11.57 kB 56.03 kB
/ui/alert-dialog 8.99 kB 56.03 kB
/ui/audio-track-radio-group 11.68 kB 56.03 kB
/ui/buffering-indicator 8.91 kB 56.03 kB
/ui/captions-button 11.80 kB 56.03 kB
/ui/captions-radio-group 11.73 kB 56.03 kB
/ui/cast-button 11.54 kB 56.03 kB
/ui/container 9.79 kB 56.03 kB
/ui/controls 9.10 kB 56.03 kB
/ui/controls-backdrop 1.69 kB 56.03 kB
/ui/controls-content 1.67 kB 56.03 kB
/ui/dialog 8.92 kB 56.03 kB
/ui/dialog-backdrop 1.70 kB 56.03 kB
/ui/dialog-close 2.06 kB 56.03 kB
/ui/dialog-description 1.69 kB 56.03 kB
/ui/dialog-popup 1.90 kB 56.03 kB
/ui/dialog-title 1.69 kB 56.03 kB
/ui/error-dialog 12.69 kB 56.03 kB
/ui/fullscreen-button 11.55 kB 56.03 kB
/ui/gesture 10.01 kB 56.03 kB
/ui/hotkey 10.40 kB 56.03 kB
/ui/live-button 10.09 kB 56.03 kB
/ui/menu 19.25 kB 56.03 kB
/ui/menu-checkbox-item 1.97 kB 56.03 kB
/ui/menu-content 7.65 kB 56.03 kB
/ui/menu-group 2.09 kB 56.03 kB
/ui/menu-group-label 1.64 kB —
/ui/menu-item 2.29 kB 56.03 kB
/ui/menu-item-indicator 1.38 kB 56.03 kB
/ui/menu-radio-group 3.03 kB 56.03 kB
/ui/menu-radio-item 2.14 kB 56.03 kB
/ui/menu-separator 1.30 kB 56.03 kB
/ui/mute-button 11.58 kB 56.03 kB
/ui/pip-button 11.53 kB 56.03 kB
/ui/play-button 11.51 kB 56.03 kB
/ui/playback-rate-button 11.62 kB 56.03 kB
/ui/playback-rate-radio-group 11.69 kB 56.03 kB
/ui/popover 8.77 kB 56.03 kB
/ui/poster 9.21 kB 56.03 kB
/ui/quality-radio-group 12.18 kB 56.03 kB
/ui/seek-button 11.55 kB 56.03 kB
/ui/seek-indicator 13.39 kB 56.03 kB
/ui/seek-indicator-value 1.10 kB —
/ui/slider 11.94 kB 56.03 kB
/ui/slider-preview 2.01 kB 56.03 kB
/ui/status-announcer 10.94 kB 56.03 kB
/ui/status-indicator 13.34 kB 56.03 kB
/ui/status-indicator-value 1.10 kB —
/ui/thumbnail 10.64 kB 56.03 kB
/ui/time 11.36 kB 56.03 kB
/ui/time-slider 13.44 kB 56.03 kB
/ui/time-slider-chapter-title 9.10 kB 56.03 kB
/ui/time-slider-chapters 9.92 kB 56.03 kB
/ui/title 8.50 kB 56.03 kB
/ui/tooltip 10.15 kB 56.03 kB
/ui/tooltip-label 1.21 kB —
/ui/tooltip-shortcut 1.18 kB —
/ui/volume-indicator 13.31 kB 56.03 kB
/ui/volume-indicator-fill 1.11 kB —
/ui/volume-indicator-value 1.10 kB —
/ui/volume-popover 15.21 kB 56.03 kB
/ui/volume-slider 12.65 kB 56.03 kB
⚛️ @videojs/react — no changes
Presets (7)
Entry Initial Lazy
/video (default) 58.75 kB 56.03 kB
/video (default + hls) 59.33 kB 56.03 kB
/video (neutral) 58.80 kB 56.03 kB
/video (neutral + hls) 59.33 kB 56.03 kB
/audio (default) 45.66 kB 56.03 kB
/audio (neutral) 45.74 kB 56.03 kB
/background 921 B 56.03 kB
Media (22)
Entry Initial
/media/mux-video/hls-js 1.51 kB
/media/mux-video/spf 1.52 kB
/media/mux-audio/hls-js 1.17 kB
/media/mux-audio/spf 1.18 kB
/media/background-video 532 B
/media/cloudflare-video 1.92 kB
/media/dash-video 1.17 kB
/media/hls-audio 22.25 kB
/media/hls-background-video 17.68 kB
/media/hls-video 32.72 kB
/media/hlsjs-video 1.17 kB
/media/mux-audio 1.17 kB
/media/mux-background-video 17.67 kB
/media/mux-video 1.50 kB
/media/native-hls-video 6.25 kB
/media/shaka-video 1.17 kB
/media/spotify-audio 1.99 kB
/media/tiktok-video 1.92 kB
/media/twitch-video 1.96 kB
/media/vimeo-video 1.90 kB
/media/wistia-video 1.44 kB
/media/youtube-video 1.90 kB
Extensions (2)
Entry Initial
/extensions/google-cast 613 B
/extensions/mux-data 665 B
Players (5)
Entry Initial Lazy
/video/player 8.68 kB 56.03 kB
/audio/player 4.90 kB 56.03 kB
/background/player 3.16 kB 56.03 kB
/live-video/player 8.07 kB 56.03 kB
/live-audio/player 4.91 kB 56.03 kB
Skins (26)
Entry Type Initial Lazy
/video/compat-skin.css css 7.35 kB —
/video/neutral-skin.css css 8.16 kB —
/video/skin.css css 7.86 kB —
/video/compat-skin js 59.56 kB 56.03 kB
/video/neutral-skin js 58.72 kB 56.03 kB
/video/skin js 58.72 kB 56.03 kB
/audio/compat-skin.css css 5.97 kB —
/audio/neutral-skin.css css 5.89 kB —
/audio/skin.css css 5.60 kB —
/audio/compat-skin js 50.66 kB 56.03 kB
/audio/neutral-skin js 45.57 kB 56.03 kB
/audio/skin js 45.53 kB 56.03 kB
/background/skin.css css 97 B —
/background/skin js 516 B —
/live-video/compat-skin.css css 6.81 kB —
/live-video/neutral-skin.css css 6.65 kB —
/live-video/skin.css css 6.55 kB —
/live-video/compat-skin js 55.54 kB 56.03 kB
/live-video/neutral-skin js 48.55 kB 56.03 kB
/live-video/skin js 48.57 kB 56.03 kB
/live-audio/compat-skin.css css 5.48 kB —
/live-audio/neutral-skin.css css 4.58 kB —
/live-audio/skin.css css 4.47 kB —
/live-audio/compat-skin js 41.85 kB 56.03 kB
/live-audio/neutral-skin js 33.86 kB 56.03 kB
/live-audio/skin js 33.86 kB 56.03 kB
UI Components (39)
Entry Initial Lazy
/ui/airplay-button 11.28 kB 56.03 kB
/ui/alert-dialog 5.21 kB 56.03 kB
/ui/audio-track 8.40 kB 56.03 kB
/ui/audio-track-radio-group 10.74 kB 56.03 kB
/ui/buffering-indicator 8.45 kB 56.03 kB
/ui/captions-button 11.26 kB 56.03 kB
/ui/captions-radio-group 10.81 kB 56.03 kB
/ui/cast-button 11.27 kB 56.03 kB
/ui/controls 8.34 kB 56.03 kB
/ui/dialog 5.20 kB 56.03 kB
/ui/error-dialog 12.66 kB 56.03 kB
/ui/fullscreen-button 11.24 kB 56.03 kB
/ui/gesture 8.61 kB 56.03 kB
/ui/hotkey 9.03 kB 56.03 kB
/ui/live-button 9.58 kB 56.03 kB
/ui/menu 22.05 kB 56.03 kB
/ui/mute-button 11.28 kB 56.03 kB
/ui/pip-button 11.24 kB 56.03 kB
/ui/play-button 11.20 kB 56.03 kB
/ui/playback-rate 8.45 kB 56.03 kB
/ui/playback-rate-button 11.20 kB 56.03 kB
/ui/playback-rate-radio-group 10.81 kB 56.03 kB
/ui/popover 9.12 kB 56.03 kB
/ui/poster 8.65 kB 56.03 kB
/ui/quality 8.82 kB 56.03 kB
/ui/quality-radio-group 11.15 kB 56.03 kB
/ui/seek-button 11.24 kB 56.03 kB
/ui/seek-indicator 13.12 kB 56.03 kB
/ui/slider 14.43 kB 56.03 kB
/ui/status-announcer 10.88 kB 56.03 kB
/ui/status-indicator 13.40 kB 56.03 kB
/ui/thumbnail 9.82 kB 56.03 kB
/ui/time 10.66 kB 56.03 kB
/ui/time-slider 16.18 kB 56.03 kB
/ui/title 7.93 kB 56.03 kB
/ui/tooltip 9.98 kB 56.03 kB
/ui/volume-indicator 13.43 kB 56.03 kB
/ui/volume-popover 15.58 kB 56.03 kB
/ui/volume-slider 13.02 kB 56.03 kB
🧩 @videojs/core — no changes
Entries (76)
Entry Initial Lazy
. 13.48 kB —
/dom 23.92 kB 56.03 kB
/vjsc 1.90 kB —
/i18n 3.20 kB 56.03 kB
/i18n/locales/all 33.91 kB —
/i18n/locales/ar 1.16 kB —
/i18n/locales/az 1.08 kB —
/i18n/locales/bg 1.29 kB —
/i18n/locales/bn 1.25 kB —
/i18n/locales/bs 1.02 kB —
/i18n/locales/ca 1.04 kB —
/i18n/locales/cs 1.10 kB —
/i18n/locales/cy 1.02 kB —
/i18n/locales/da 984 B —
/i18n/locales/de 1.06 kB —
/i18n/locales/el 1.42 kB —
/i18n/locales/en 801 B —
/i18n/locales/es 999 B —
/i18n/locales/et 1.02 kB —
/i18n/locales/eu 1.04 kB —
/i18n/locales/fa 1.21 kB —
/i18n/locales/fi 1.05 kB —
/i18n/locales/fr 1.01 kB —
/i18n/locales/gd 1.09 kB —
/i18n/locales/gl 1017 B —
/i18n/locales/he 1.10 kB —
/i18n/locales/hi 1.25 kB —
/i18n/locales/hr 1.05 kB —
/i18n/locales/hu 1.10 kB —
/i18n/locales/id 953 B —
/i18n/locales/it 1.01 kB —
/i18n/locales/ja 1.16 kB —
/i18n/locales/ko 1.08 kB —
/i18n/locales/lt 1.04 kB —
/i18n/locales/lv 1.09 kB —
/i18n/locales/mr 1.23 kB —
/i18n/locales/nb 990 B —
/i18n/locales/ne 1.23 kB —
/i18n/locales/nl 1.01 kB —
/i18n/locales/nn 983 B —
/i18n/locales/oc 1.05 kB —
/i18n/locales/pl 1.11 kB —
/i18n/locales/pt 1.02 kB —
/i18n/locales/pt-BR 1.02 kB —
/i18n/locales/pt-PT 1.02 kB —
/i18n/locales/ro 1.04 kB —
/i18n/locales/ru 1.36 kB —
/i18n/locales/sk 1.10 kB —
/i18n/locales/sl 1.04 kB —
/i18n/locales/sr 1.05 kB —
/i18n/locales/sv 1.01 kB —
/i18n/locales/te 1.29 kB —
/i18n/locales/th 1.20 kB —
/i18n/locales/tr 1.00 kB —
/i18n/locales/uk 1.37 kB —
/i18n/locales/vi 1.10 kB —
/i18n/locales/zh 1.01 kB —
/i18n/locales/zh-CN 1.01 kB —
/i18n/locales/zh-TW 1.02 kB —
/i18n/text/airplay 101 B —
/i18n/text/buttons 137 B —
/i18n/text/captions 93 B —
/i18n/text/cast 114 B —
/i18n/text/common 90 B —
/i18n/text/container 75 B —
/i18n/text/errors 285 B —
/i18n/text/fullscreen 98 B —
/i18n/text/live 126 B —
/i18n/text/menu 249 B —
/i18n/text/pip 101 B —
/i18n/text/playback 80 B —
/i18n/text/seek 105 B —
/i18n/text/slider 65 B —
/i18n/text/status 222 B —
/i18n/text/time 322 B —
/i18n/text/volume 133 B —
🏷️ @videojs/element — no changes
Entries (2)
Entry Initial
. 1.05 kB
/context 1.15 kB
📦 @videojs/store — no changes
Entries (3)
Entry Initial
. 1.85 kB
/html 703 B
/react 511 B
🔧 @videojs/utils — no changes
Entries (13)
Entry Initial
/array 271 B
/dom 5.25 kB
/events 320 B
/function 414 B
/i18n 249 B
/jwt 176 B
/object 535 B
/predicate 297 B
/percent 281 B
/string 239 B
/style 212 B
/time 1018 B
/number 199 B
📦 @videojs/cdn — no changes
📦 @videojs/cloudflare-video — no changes
📦 @videojs/dash-video — no changes
📦 @videojs/google-cast — no changes
📦 @videojs/hlsjs-video — no changes
📦 @videojs/media — no changes
Entries (3)
Entry Initial
. 3.22 kB
/dom 4.00 kB
/media-tracks 2.05 kB
📦 @videojs/mux — no changes
📦 @videojs/mux-audio — no changes
Entries (2)
Entry Initial
. 135.93 kB
/spf 22.77 kB
📦 @videojs/mux-data — no changes
📦 @videojs/mux-video — no changes
Entries (2)
Entry Initial
. 136.05 kB
/spf 33.04 kB
📦 @videojs/native-hls-video — no changes
📦 @videojs/shaka-video — no changes
📦 @videojs/spf — no changes
Entries (7)
Entry Initial
. 4.56 kB
/dom 7.85 kB
/hls 28.40 kB
/media-tracks 507 B
/hls-background-video 16.60 kB
/hls-audio 21.28 kB
/hls-video 31.73 kB
📦 @videojs/spotify-audio — no changes
📦 @videojs/tiktok-video — no changes
📦 @videojs/twitch-video — no changes
📦 @videojs/other — 1 small size change
Path Base initial PR initial Initial diff Lazy diff
video.js/package.json 598 B 613 B +15 B (+2.5%) —
Entries (3)
Entry Initial
video.js 390 B
video.js/package.json 613 B
video.js/errors 1.04 kB
📦 @videojs/vimeo-video — no changes
📦 @videojs/wistia-video — no changes
Entries (2)
Entry Initial
. 1.91 kB
/helpers 1.76 kB
📦 @videojs/youtube-video — no changes

ℹ️ How to interpret

Each entry is independently bundled, minified, and brotli-compressed. Initial size includes its static import graph; lazy dynamic chunks are reported separately.

Entries are not additive because their dependency graphs overlap. Preset rows represent realistic combined bundles.

Changes of 300 B or less across initial, lazy, and total size are collapsed, not discarded.

Run pnpm size locally to check current initial sizes.

mihar-22 and others added 2 commits October 5, 2026 20:51
The suite's global setup imports `@videojs/utils/predicate`, which resolves to built output. The E2E
job only built `video.js`, so setup failed with "Cannot find module" before any test ran.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

This branch was successfully deployed

1 active deployment
Preview — 7cbae48a Deployed Oct 6, 2026 by vercel[bot]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Keep Video.js 8 CDN Paths Working When video.js@10 Becomes Latest

1 participant