Skip to content

refactor(packages): restructure vjsc and the skins build - #9478

Draft
mihar-22 wants to merge 5 commits into
mainfrom
refactor/vjsc-build-boundary
Draft

mihar-22 wants to merge 5 commits into
mainfrom
refactor/vjsc-build-boundary

Conversation

@mihar-22

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

Copy link
Copy Markdown
Member

Summary

Restructures VJSC, the compiler behind the skins, and the skins build after a review, and fixes the correctness issues the review found. Skins generate drops from about 5.0 s to 2.2 s wall (build step 4.4 s → 1.8 s), and the generated output no longer depends on the checkout path.

Ported from videojs/v10#2970, rebased onto main. Second of three stacked PRs: videojs/v10#2971 (merged) → this → #9479.

Changes

  • Target lowering in three stages. vjsc:target-source, vjsc:target-lower, and vjsc:target-finalize replace ten separate passes. They share one bindings index and one set of imports, and rule errors report source positions.
  • Style pipeline split up. The style plugin is now separate candidate, reference, virtual-CSS, and file-cache modules. Diagnostics report path:line:column and run once per style set.
  • Target tables live with their packages: packages/html/vjsc, packages/react/vjsc, and packages/icons/vjsc. kebabCaseName in @videojs/utils (its own commit) converts component names to element names.
  • Skins build on typed VJSC APIs.
    • One compiler-options object is shared by the build and the Vite preset.
    • Variants and metadata keep their types through the graph and the registry.
    • Generated outputs and the skin source layout are each declared once.
    • Registry items no longer repeat their catalog's metadata.
  • Correctness fixes.
    • Scope IDs and the graph's module order no longer depend on the checkout path.
    • Style isolation errors fail every build, not only the dev server.
    • Parts no target lowered, and unconsumed $render markers, are now errors.
    • The CSS cascade order is declared once, and a composition that contradicts it fails the build. Only the arrays a className or class attribute composes count, including nested, spread, and conditional ones. Rules for exclusive attribute states, such as [data-state="open"] and [data-state="closed"], never conflict, and neither do declarations whose importance or specificity already decides the winner.
    • Bundle deduplication compares rules within their parent rules.
    • Templates beside other templates now lower; templates nested inside templates are errors.
    • VJSC's build data lives under meta.vjsc, so other plugins' resolver metadata survives.
    • Theme CSS imports must stay inside the graph root, and url() imports, layer()/supports()/media conditions, and commented-out imports are handled.
    • Generated-file ownership is checked on normalized paths.
  • Packaging. @videojs/core no longer packs dist/*/vjsc.* or dist/*/core/ui/*/component.* (144 files). Its published exports never reach them, and they import the private vjsc.
  • Performance.
    • Rendered CSS is cached per file.
    • Reusable React components compile once per theme instead of once per skin.
    • CSS bundling analyzes each stylesheet once, through a single lightningcss callback.
    • Per-rule style utilities and compiled diagnostics are memoized.

Intentional output changes

  • React CSS no longer carries the WebKit :where(.media-skin) shadow-host copies. React never renders those elements as shadow hosts, and HTML CSS is unchanged.
  • Dead :scope rules outside @scope are gone.
  • CSS blocks that style unrelated classes follow a fixed, root-relative module order. Some blocks move in the React CSS registry style files as a result.
  • Empty @supports {}/@media {} blocks left behind by deduplication are removed.
  • One registry docs line now reads "Video.js components" instead of "Video.js menu components".
  • The Compat and Scaffold catalogs list their presets in the Default and Neutral order, with live-audio before audio, because every theme's skins are now declared once.
  • In Compat and Scaffold React modules, a primitive lowered from a vjsc/components import, such as Text, shares one import declaration with the next primitive from the same module. The bindings are unchanged.

Changes from the v10 PR

The stack's base was v10 89c1c5803. main has since renamed the Minimal skin to Neutral (videojs/v10#3092) and added the Compat (videojs/v10#3026, #9252) and Scaffold (#9251, #9269, #9287) skins, so the rebase carries those into this PR's structure:

Implementation details
  • VariantCodec.inherit() lets a relative import compile for a narrower variant than its importer. Skins uses it to compile reusable React components without skin.
  • resolveId and load hooks now declare id filters. The handlers still check ids themselves, so Vite versions that ignore filters behave the same.
  • Rolldown's module order varies with the absolute checkout path, so the graph now orders modules by their root-relative identity. Building this branch in two checkouts produces byte-identical output.
  • Two ideas were measured and dropped:
    • Skipping any lightningcss print→parse pass changes output, because the re-parse merges shorthands and splits selector lists.
    • Sharing module ASTs across plugins would have avoided only 7% of parses.
  • API changes (none published outside the repo; vjsc is private):
    • The Vite vjscPlugin type parameters are now <Node, Variant>.
    • readLocalCssImports(filename, root) now requires root.
    • Registry item place is now a method signature.

Testing

  • Fresh worktrees of main and this branch: pnpm install --frozen-lockfile, then every package built with nothing cached. Both pass.
  • Generated generate output (package skins, React presets, background copies, and dist/registry/source) compared across v10's base 89c1c5803, the v10 head fa7d82978, main, and this branch, with minimal read as neutral and scope ids numbered per file:
    • Default and Neutral: 495 files the PR does not touch are identical to main's, and 31 equal main plus the v10 change byte for byte. 19 stylesheets match it rule for rule, with only the root-relative block order differing. The rest are main's button tooltip: its UI item gets this PR's metadata shape, and the private support item the v10 PR edited no longer exists.
    • Compat and Scaffold: 490 files are identical to main's. The others differ only by the intended changes above: scope ids, block order, 34 WebKit shadow-host copies dropped from React CSS registry files, registry metadata, catalog order, and import grouping.
  • Tests: vjsc (290), @videojs/skins (103), @videojs/react (589), @videojs/core (1474), @videojs/icons (14), @videojs/utils (496), @videojs/installation (306), @videojs/html (454 of 455), and every other package's test:ci except @videojs/spf. The @videojs/html failure, ThumbnailElement › "adopts an image assigned to a forwarding slot after mount", fails the same way on main on this machine under load, and this PR does not touch packages/html/src.
  • pnpm typecheck, pnpm lint, pnpm check:workspace, pnpm test:shadcn, and pnpm -F site check:api-stability
  • Not run: the Playwright E2E suites, and @videojs/spf's browser tests. Playwright has no Chromium for this machine's OS release. On this machine, Vite+'s cache tracing also fails concurrent tsgo spawns with EBUSY, on main too, so tasks ran with --no-cache.

🤖 Generated with Claude Code

mihar-22 and others added 5 commits October 12, 2026 13:51
kebabCase keeps the leading dash a vendor-prefixed CSS property needs. kebabCaseName converts
identifiers such as PlayButton to play-button, which the HTML element tables use for public names.
Lower targets in three stages (source, lower, finalize) that share one bindings index and one set of
imports. Split the style plugin into candidate, reference, virtual CSS, and file-cache modules. Move
the HTML, React, and icon target tables into their own packages. Build skins on typed variant,
metadata, graph, and registry APIs, with generated outputs and the source layout each declared once.

Correctness fixes: checkout-independent scope ids and graph module order, style isolation errors in
every build, errors for unconsumed parts and $render markers, a declared cascade order, bundle
dedupe within parents, template siblings and nested templates, namespaced build metadata that keeps
other plugins' data, contained and conditional CSS imports, and normalized generated-file ownership.

Performance: a per-file render cache, one compile per theme for reusable React components, per-piece
bundle analysis, and memoized style utilities take skins generate from about 5.0 s to 2.2 s wall.
Task configs load before any package builds, so in a fresh checkout vjsc has no dist and importing
the plugin through `vjsc/plugins` fails to load the task graph. Core's config imports the plugin's
source again, and the modules that source loads use inline type checks instead of `@videojs/utils`,
which is not built yet either.
The cascade-order check treated every array and call argument holding two style references as a
composition, and every shared property as a conflict. Alternatives passed to a chooser or kept in
an array never meet on one element, and rules for exclusive attribute states, such as
`[data-state="open"]` and `[data-state="closed"]`, or `[data-pip]` and `:not([data-pip])`, never
apply together, yet both failed builds that compiled before the check existed. Only the arrays a
`className` or `class` attribute composes count now, including nested and spread arrays and each
branch of a conditional value, and declarations under exclusive attribute states of one element
do not compete.
…he cascade

The cascade-order check rejected two composed rules that set one property in an order the CSS output
reverses. The cascade compares importance and then specificity before source order, so an
`!important` override, or one whose selector is more specific, wins in CSS and Tailwind output alike
wherever each rule is emitted. The Compat and Scaffold skins compose both kinds, `overflow-visible!`
over the container's `overflow-hidden` and status icons shown by a `group-data-*` variant over
`hidden`, and failed to build. Declarations of equal importance and specificity are still checked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@netlify

netlify Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for vjs10-site ready!

Name Link
🔨 Latest commit d83dff2
🔍 Latest deploy log https://app.netlify.com/projects/vjs10-site/deploys/6acd57d3e75ab727941edd1f
😎 Deploy Preview https://deploy-preview-9478--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.

@pkg-pr-new

pkg-pr-new Bot commented Oct 12, 2026

Copy link
Copy Markdown
@videojs/cdn

pnpm add https://pkg.pr.new/videojs/video.js/@videojs/cdn@9478

@videojs/cli

pnpm add https://pkg.pr.new/videojs/video.js/@videojs/cli@9478

@videojs/core

pnpm add https://pkg.pr.new/videojs/video.js/@videojs/core@9478

@videojs/element

pnpm add https://pkg.pr.new/videojs/video.js/@videojs/element@9478

@videojs/html

pnpm add https://pkg.pr.new/videojs/video.js/@videojs/html@9478

@videojs/media

pnpm add https://pkg.pr.new/videojs/video.js/@videojs/media@9478

@videojs/react

pnpm add https://pkg.pr.new/videojs/video.js/@videojs/react@9478

@videojs/spf

pnpm add https://pkg.pr.new/videojs/video.js/@videojs/spf@9478

@videojs/store

pnpm add https://pkg.pr.new/videojs/video.js/@videojs/store@9478

@videojs/utils

pnpm add https://pkg.pr.new/videojs/video.js/@videojs/utils@9478

@videojs/cloudflare-video

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

@videojs/dash-video

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

@videojs/hlsjs-video

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

@videojs/mux-audio

pnpm add https://pkg.pr.new/videojs/video.js/@videojs/mux-audio@9478

@videojs/mux-video

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

@videojs/native-hls-video

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

@videojs/playerjs-video

pnpm add https://pkg.pr.new/videojs/video.js/@videojs/playerjs-video@9478

@videojs/shaka-video

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

@videojs/spotify-audio

pnpm add https://pkg.pr.new/videojs/video.js/@videojs/spotify-audio@9478

@videojs/tiktok-video

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

@videojs/twitch-video

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

@videojs/vimeo-video

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

@videojs/wistia-video

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

@videojs/youtube-video

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

@videojs/google-cast

pnpm add https://pkg.pr.new/videojs/video.js/@videojs/google-cast@9478

@videojs/mux-data

pnpm add https://pkg.pr.new/videojs/video.js/@videojs/mux-data@9478

commit: d83dff2

@github-actions

Copy link
Copy Markdown
Contributor

📦 Bundle Size Report

🎨 @videojs/html — 73 small size changes
Path Base initial PR initial Initial diff Lazy diff
/video/compat-skin.css 7.57 kB 7.59 kB +14 B (+0.2%) —
/video/neutral-skin.css 8.38 kB 8.35 kB -35 B (-0.4%) —
/video/scaffold-skin.css 6.58 kB 6.60 kB +26 B (+0.4%) —
/video/skin.css 8.10 kB 8.04 kB -61 B (-0.7%) —
/video/compat-skin 63.02 kB 62.96 kB -67 B (-0.1%) 0 B
/video/compat-skin2 7.54 kB 7.56 kB +19 B (+0.2%) —
/video/neutral-skin 63.84 kB 63.85 kB +8 B (+0.0%) 0 B
/video/neutral-skin2 8.37 kB 8.35 kB -22 B (-0.3%) —
/video/scaffold-skin 60.87 kB 60.86 kB -3 B (-0.0%) 0 B
/video/scaffold-skin2 6.59 kB 6.60 kB +4 B (+0.1%) —
/video/skin 63.49 kB 63.38 kB -116 B (-0.2%) 0 B
/video/skin2 8.08 kB 8.04 kB -42 B (-0.5%) —
/audio/compat-skin.css 6.23 kB 6.23 kB +2 B (+0.0%) —
/audio/scaffold-skin.css 5.64 kB 5.65 kB +6 B (+0.1%) —
/audio/skin.css 5.80 kB 5.80 kB -3 B (-0.1%) —
/audio/compat-skin 54.80 kB 54.81 kB +10 B (+0.0%) 0 B
/audio/compat-skin2 6.22 kB 6.23 kB +10 B (+0.2%) —
/audio/neutral-skin 47.62 kB 47.55 kB -67 B (-0.1%) 0 B
/audio/neutral-skin2 6.05 kB 6.06 kB +9 B (+0.1%) —
/audio/player 7.21 kB 7.21 kB +2 B (+0.0%) 0 B
/audio/scaffold-skin 53.50 kB 53.54 kB +39 B (+0.1%) 0 B
/audio/scaffold-skin2 5.65 kB 5.66 kB +12 B (+0.2%) —
/audio/skin 47.23 kB 47.29 kB +60 B (+0.1%) 0 B
/audio/skin2 5.78 kB 5.78 kB -2 B (-0.0%) —
/background/player 5.34 kB 5.34 kB +1 B (+0.0%) 0 B
/live-video/compat-skin.css 7.02 kB 7.02 kB +2 B (+0.0%) —
/live-video/neutral-skin.css 6.85 kB 6.82 kB -35 B (-0.5%) —
/live-video/scaffold-skin.css 6.16 kB 6.17 kB +10 B (+0.2%) —
/live-video/skin.css 6.75 kB 6.72 kB -33 B (-0.5%) —
/live-video/compat-skin 53.98 kB 53.92 kB -61 B (-0.1%) 0 B
/live-video/compat-skin2 7.00 kB 6.99 kB -2 B (-0.0%) —
/live-video/neutral-skin 51.11 kB 50.96 kB -152 B (-0.3%) 0 B
/live-video/neutral-skin2 6.86 kB 6.83 kB -30 B (-0.4%) —
/live-video/player 10.36 kB 10.36 kB -2 B (-0.0%) 0 B
/live-video/scaffold-skin 52.02 kB 52.10 kB +78 B (+0.1%) 0 B
/live-video/scaffold-skin2 6.18 kB 6.16 kB -21 B (-0.3%) —
/live-video/skin 50.95 kB 51.03 kB +81 B (+0.2%) 0 B
/live-video/skin2 6.74 kB 6.72 kB -25 B (-0.4%) —
/live-audio/compat-skin.css 5.72 kB 5.73 kB +7 B (+0.1%) —
/live-audio/neutral-skin.css 4.77 kB 4.78 kB +7 B (+0.1%) —
/live-audio/scaffold-skin.css 5.21 kB 5.22 kB +15 B (+0.3%) —
/live-audio/skin.css 4.67 kB 4.68 kB +7 B (+0.1%) —
/live-audio/compat-skin 41.26 kB 41.29 kB +27 B (+0.1%) 0 B
/live-audio/neutral-skin 36.37 kB 36.37 kB +3 B (+0.0%) 0 B
/live-audio/neutral-skin2 4.77 kB 4.77 kB -1 B (-0.0%) —
/live-audio/player 7.21 kB 7.23 kB +13 B (+0.2%) 0 B
/live-audio/scaffold-skin 40.04 kB 40.03 kB -19 B (-0.0%) 0 B
/live-audio/skin 36.22 kB 36.25 kB +36 B (+0.1%) 0 B
/live-audio/skin2 4.66 kB 4.67 kB +13 B (+0.3%) —
/ui/alert-dialog 8.99 kB 8.99 kB -2 B (-0.0%) 0 B
/ui/dialog 8.92 kB 8.93 kB +2 B (+0.0%) 0 B
/ui/menu 19.38 kB 19.39 kB +16 B (+0.1%) 0 B
/ui/popover 8.77 kB 8.78 kB +3 B (+0.0%) 0 B
/ui/tooltip 10.15 kB 10.15 kB +2 B (+0.0%) 0 B
/ui/volume-slider 12.75 kB 12.76 kB +12 B (+0.1%) 0 B
/media/mux-video 3.03 kB 3.03 kB +3 B (+0.1%) —
/media/mux-audio 2.71 kB 2.70 kB -9 B (-0.3%) —
/media/dash-video 2.63 kB 2.64 kB +7 B (+0.3%) —
/media/hls-audio 23.79 kB 23.80 kB +12 B (+0.0%) —
/media/hls-video 34.18 kB 34.17 kB -8 B (-0.0%) —
/media/native-hls-video 8.93 kB 8.93 kB -2 B (-0.0%) —
/media/playerjs-video 3.00 kB 2.99 kB -1 B (-0.0%) —
/media/shaka-video 2.64 kB 2.64 kB +1 B (+0.0%) —
/media/tiktok-video 3.14 kB 3.13 kB -6 B (-0.2%) —
/media/vimeo-video 2.92 kB 2.92 kB -3 B (-0.1%) —
/media/youtube-video 2.91 kB 2.91 kB -1 B (-0.0%) —
/video (default) 65.78 kB 65.82 kB +41 B (+0.1%) 0 B
/video (default + hls) 67.52 kB 67.51 kB -16 B (-0.0%) 0 B
/video (neutral) 66.21 kB 66.23 kB +18 B (+0.0%) 0 B
/video (neutral + hls) 67.93 kB 67.95 kB +18 B (+0.0%) 0 B
/audio (default) 49.56 kB 49.59 kB +39 B (+0.1%) 0 B
/audio (neutral) 49.85 kB 49.86 kB +19 B (+0.0%) 0 B
/background 12.83 kB 12.83 kB -2 B (-0.0%) 0 B
Presets (7)
Entry Initial Lazy
/video (default) 65.82 kB 56.03 kB
/video (default + hls) 67.51 kB 56.03 kB
/video (neutral) 66.23 kB 56.03 kB
/video (neutral + hls) 67.95 kB 56.03 kB
/audio (default) 49.59 kB 56.03 kB
/audio (neutral) 49.86 kB 56.03 kB
/background 12.83 kB 56.03 kB
Media (19)
Entry Initial
/media/mux-video 3.03 kB
/media/mux-audio 2.70 kB
/media/background-video 1.17 kB
/media/cloudflare-video 2.91 kB
/media/dash-video 2.64 kB
/media/hls-audio 23.80 kB
/media/hls-background-video 17.67 kB
/media/hls-video 34.17 kB
/media/hlsjs-video 2.64 kB
/media/mux-background-video 17.68 kB
/media/native-hls-video 8.93 kB
/media/playerjs-video 2.99 kB
/media/shaka-video 2.64 kB
/media/spotify-audio 3.03 kB
/media/tiktok-video 3.13 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.99 kB 56.03 kB
/audio/player 7.21 kB 56.03 kB
/background/player 5.34 kB 56.03 kB
/live-video/player 10.36 kB 56.03 kB
/live-audio/player 7.23 kB 56.03 kB
Skins (53)
Entry Type Initial Lazy
/video/compat-skin.css css 7.59 kB —
/video/neutral-skin.css css 8.35 kB —
/video/scaffold-skin.css css 6.60 kB —
/video/skin.css css 8.04 kB —
/video/compat-skin js 62.96 kB 56.03 kB
/video/compat-skin2 js 7.56 kB —
/video/neutral-skin js 63.85 kB 56.03 kB
/video/neutral-skin2 js 8.35 kB —
/video/scaffold-skin js 60.86 kB 56.03 kB
/video/scaffold-skin2 js 6.60 kB —
/video/skin js 63.38 kB 56.03 kB
/video/skin2 js 8.04 kB —
/audio/compat-skin.css css 6.23 kB —
/audio/neutral-skin.css css 6.07 kB —
/audio/scaffold-skin.css css 5.65 kB —
/audio/skin.css css 5.80 kB —
/audio/compat-skin js 54.81 kB 56.03 kB
/audio/compat-skin2 js 6.23 kB —
/audio/neutral-skin js 47.55 kB 56.03 kB
/audio/neutral-skin2 js 6.06 kB —
/audio/scaffold-skin js 53.54 kB 56.03 kB
/audio/scaffold-skin2 js 5.66 kB —
/audio/skin js 47.29 kB 56.03 kB
/audio/skin2 js 5.78 kB —
/background/skin.css css 141 B —
/background/skin js 10.25 kB 56.03 kB
/background/skin2 js 159 B —
/live-video/compat-skin.css css 7.02 kB —
/live-video/neutral-skin.css css 6.82 kB —
/live-video/scaffold-skin.css css 6.17 kB —
/live-video/skin.css css 6.72 kB —
/live-video/compat-skin js 53.92 kB 56.03 kB
/live-video/compat-skin2 js 6.99 kB —
/live-video/neutral-skin js 50.96 kB 56.03 kB
/live-video/neutral-skin2 js 6.83 kB —
/live-video/scaffold-skin js 52.10 kB 56.03 kB
/live-video/scaffold-skin2 js 6.16 kB —
/live-video/skin js 51.03 kB 56.03 kB
/live-video/skin2 js 6.72 kB —
/live-audio/compat-skin.css css 5.73 kB —
/live-audio/neutral-skin.css css 4.78 kB —
/live-audio/scaffold-skin.css css 5.22 kB —
/live-audio/skin.css css 4.68 kB —
/live-audio/compat-skin js 41.29 kB 56.03 kB
/live-audio/compat-skin2 js 5.71 kB —
/live-audio/neutral-skin js 36.37 kB 56.03 kB
/live-audio/neutral-skin2 js 4.77 kB —
/live-audio/scaffold-skin js 40.03 kB 56.03 kB
/live-audio/scaffold-skin2 js 5.22 kB —
/live-audio/skin js 36.25 kB 56.03 kB
/live-audio/skin2 js 4.67 kB —
/global.css css 239 B —
/shadow.css css 78 B —
UI Components (62)
Entry Initial Lazy
/ui/airplay-button 11.71 kB 56.03 kB
/ui/alert-dialog 8.99 kB 56.03 kB
/ui/audio-track-radio-group 11.81 kB 56.03 kB
/ui/buffering-indicator 9.06 kB 56.03 kB
/ui/captions-button 11.95 kB 56.03 kB
/ui/captions-radio-group 11.87 kB 56.03 kB
/ui/cast-button 11.67 kB 56.03 kB
/ui/container 9.91 kB 56.03 kB
/ui/controls 9.21 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.93 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.83 kB 56.03 kB
/ui/fullscreen-button 11.69 kB 56.03 kB
/ui/gesture 10.14 kB 56.03 kB
/ui/hotkey 10.55 kB 56.03 kB
/ui/live-button 10.23 kB 56.03 kB
/ui/menu 19.39 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.70 kB 56.03 kB
/ui/pip-button 11.66 kB 56.03 kB
/ui/play-button 11.65 kB 56.03 kB
/ui/playback-rate-button 11.75 kB 56.03 kB
/ui/playback-rate-radio-group 11.81 kB 56.03 kB
/ui/popover 8.78 kB 56.03 kB
/ui/poster 9.36 kB 56.03 kB
/ui/quality-radio-group 12.34 kB 56.03 kB
/ui/seek-button 11.69 kB 56.03 kB
/ui/seek-indicator 13.54 kB 56.03 kB
/ui/seek-indicator-value 1.10 kB —
/ui/slider 12.04 kB 56.03 kB
/ui/slider-preview 2.01 kB 56.03 kB
/ui/status-announcer 11.10 kB 56.03 kB
/ui/status-indicator 13.48 kB 56.03 kB
/ui/status-indicator-value 1.10 kB —
/ui/thumbnail 10.77 kB 56.03 kB
/ui/time 11.50 kB 56.03 kB
/ui/time-slider 13.94 kB 56.03 kB
/ui/time-slider-chapter-title 9.25 kB 56.03 kB
/ui/time-slider-chapters 10.08 kB 56.03 kB
/ui/title 8.63 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.43 kB 56.03 kB
/ui/volume-indicator-fill 1.11 kB —
/ui/volume-indicator-value 1.10 kB —
/ui/volume-popover 15.36 kB 56.03 kB
/ui/volume-slider 12.76 kB 56.03 kB
⚛️ @videojs/react — 41 small size changes
Path Base initial PR initial Initial diff Lazy diff
/video/compat-skin.css 7.45 kB 7.46 kB +12 B (+0.2%) —
/video/neutral-skin.css 8.21 kB 8.17 kB -37 B (-0.4%) —
/video/scaffold-skin.css 6.46 kB 6.49 kB +24 B (+0.4%) —
/video/skin.css 7.92 kB 7.86 kB -56 B (-0.7%) —
/video/compat-skin 60.24 kB 60.13 kB -111 B (-0.2%) 0 B
/video/neutral-skin 59.25 kB 59.36 kB +112 B (+0.2%) 0 B
/video/scaffold-skin 59.14 kB 59.06 kB -75 B (-0.1%) 0 B
/video/skin 59.09 kB 59.29 kB +200 B (+0.3%) 0 B
/audio/compat-skin.css 6.07 kB 6.07 kB -2 B (-0.0%) —
/audio/neutral-skin.css 5.89 kB 5.88 kB -6 B (-0.1%) —
/audio/scaffold-skin.css 5.48 kB 5.49 kB +13 B (+0.2%) —
/audio/skin.css 5.60 kB 5.61 kB +16 B (+0.3%) —
/audio/compat-skin 51.48 kB 51.47 kB -9 B (-0.0%) 0 B
/audio/neutral-skin 46.06 kB 46.17 kB +118 B (+0.3%) 0 B
/audio/scaffold-skin 50.79 kB 50.76 kB -25 B (-0.0%) 0 B
/audio/skin 46.06 kB 46.10 kB +41 B (+0.1%) 0 B
/live-video/compat-skin.css 6.90 kB 6.88 kB -14 B (-0.2%) —
/live-video/neutral-skin.css 6.68 kB 6.66 kB -18 B (-0.3%) —
/live-video/scaffold-skin.css 6.05 kB 6.06 kB +8 B (+0.1%) —
/live-video/skin.css 6.58 kB 6.56 kB -18 B (-0.3%) —
/live-video/compat-skin 56.13 kB 56.10 kB -31 B (-0.1%) 0 B
/live-video/neutral-skin 48.59 kB 48.67 kB +86 B (+0.2%) 0 B
/live-video/scaffold-skin 55.13 kB 55.14 kB +10 B (+0.0%) 0 B
/live-video/skin 48.70 kB 48.69 kB -11 B (-0.0%) 0 B
/live-audio/compat-skin.css 5.56 kB 5.57 kB +10 B (+0.2%) —
/live-audio/neutral-skin.css 4.58 kB 4.59 kB +5 B (+0.1%) —
/live-audio/scaffold-skin.css 5.05 kB 5.06 kB +11 B (+0.2%) —
/live-audio/skin.css 4.47 kB 4.49 kB +15 B (+0.3%) —
/live-audio/compat-skin 42.64 kB 42.65 kB +7 B (+0.0%) 0 B
/live-audio/neutral-skin 33.93 kB 33.96 kB +32 B (+0.1%) 0 B
/live-audio/scaffold-skin 42.05 kB 42.07 kB +24 B (+0.1%) 0 B
/live-audio/skin 33.93 kB 33.93 kB -4 B (-0.0%) 0 B
/ui/menu 22.18 kB 22.19 kB +7 B (+0.0%) 0 B
/ui/popover 9.12 kB 9.12 kB +1 B (+0.0%) 0 B
/ui/tooltip 9.98 kB 9.98 kB +4 B (+0.0%) 0 B
/ui/volume-popover 15.70 kB 15.70 kB -1 B (-0.0%) 0 B
/video (default + hls) 60.01 kB 59.98 kB -28 B (-0.0%) 0 B
/video (neutral) 59.46 kB 59.56 kB +101 B (+0.2%) 0 B
/video (neutral + hls) 60.04 kB 59.95 kB -87 B (-0.1%) 0 B
/audio (default) 46.31 kB 46.27 kB -40 B (-0.1%) 0 B
/audio (neutral) 46.26 kB 46.29 kB +31 B (+0.1%) 0 B
Presets (7)
Entry Initial Lazy
/video (default) 59.37 kB 56.03 kB
/video (default + hls) 59.98 kB 56.03 kB
/video (neutral) 59.56 kB 56.03 kB
/video (neutral + hls) 59.95 kB 56.03 kB
/audio (default) 46.27 kB 56.03 kB
/audio (neutral) 46.29 kB 56.03 kB
/background 894 B 56.03 kB
Media (23)
Entry Initial
/media/mux-video/hls-js 1.60 kB
/media/mux-video/spf 1.60 kB
/media/mux-audio/hls-js 1.27 kB
/media/mux-audio/spf 1.26 kB
/media/background-video 624 B
/media/cloudflare-video 1.92 kB
/media/dash-video 1.25 kB
/media/hls-audio 22.63 kB
/media/hls-background-video 17.84 kB
/media/hls-video 33.05 kB
/media/hlsjs-video 1.25 kB
/media/mux-audio 1.26 kB
/media/mux-background-video 17.86 kB
/media/mux-video 1.59 kB
/media/native-hls-video 7.72 kB
/media/playerjs-video 1.87 kB
/media/shaka-video 1.26 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.83 kB 56.03 kB
/audio/player 5.05 kB 56.03 kB
/background/player 3.16 kB 56.03 kB
/live-video/player 8.22 kB 56.03 kB
/live-audio/player 5.06 kB 56.03 kB
Skins (34)
Entry Type Initial Lazy
/video/compat-skin.css css 7.46 kB —
/video/neutral-skin.css css 8.17 kB —
/video/scaffold-skin.css css 6.49 kB —
/video/skin.css css 7.86 kB —
/video/compat-skin js 60.13 kB 56.03 kB
/video/neutral-skin js 59.36 kB 56.03 kB
/video/scaffold-skin js 59.06 kB 56.03 kB
/video/skin js 59.29 kB 56.03 kB
/audio/compat-skin.css css 6.07 kB —
/audio/neutral-skin.css css 5.88 kB —
/audio/scaffold-skin.css css 5.49 kB —
/audio/skin.css css 5.61 kB —
/audio/compat-skin js 51.47 kB 56.03 kB
/audio/neutral-skin js 46.17 kB 56.03 kB
/audio/scaffold-skin js 50.76 kB 56.03 kB
/audio/skin js 46.10 kB 56.03 kB
/background/skin.css css 97 B —
/background/skin js 392 B —
/live-video/compat-skin.css css 6.88 kB —
/live-video/neutral-skin.css css 6.66 kB —
/live-video/scaffold-skin.css css 6.06 kB —
/live-video/skin.css css 6.56 kB —
/live-video/compat-skin js 56.10 kB 56.03 kB
/live-video/neutral-skin js 48.67 kB 56.03 kB
/live-video/scaffold-skin js 55.14 kB 56.03 kB
/live-video/skin js 48.69 kB 56.03 kB
/live-audio/compat-skin.css css 5.57 kB —
/live-audio/neutral-skin.css css 4.59 kB —
/live-audio/scaffold-skin.css css 5.06 kB —
/live-audio/skin.css css 4.49 kB —
/live-audio/compat-skin js 42.65 kB 56.03 kB
/live-audio/neutral-skin js 33.96 kB 56.03 kB
/live-audio/scaffold-skin js 42.07 kB 56.03 kB
/live-audio/skin js 33.93 kB 56.03 kB
UI Components (39)
Entry Initial Lazy
/ui/airplay-button 11.42 kB 56.03 kB
/ui/alert-dialog 5.21 kB 56.03 kB
/ui/audio-track 8.54 kB 56.03 kB
/ui/audio-track-radio-group 10.87 kB 56.03 kB
/ui/buffering-indicator 8.60 kB 56.03 kB
/ui/captions-button 11.40 kB 56.03 kB
/ui/captions-radio-group 10.96 kB 56.03 kB
/ui/cast-button 11.40 kB 56.03 kB
/ui/controls 8.49 kB 56.03 kB
/ui/dialog 5.19 kB 56.03 kB
/ui/error-dialog 12.80 kB 56.03 kB
/ui/fullscreen-button 11.38 kB 56.03 kB
/ui/gesture 8.76 kB 56.03 kB
/ui/hotkey 9.18 kB 56.03 kB
/ui/live-button 9.72 kB 56.03 kB
/ui/menu 22.19 kB 56.03 kB
/ui/mute-button 11.42 kB 56.03 kB
/ui/pip-button 11.39 kB 56.03 kB
/ui/play-button 11.36 kB 56.03 kB
/ui/playback-rate 8.59 kB 56.03 kB
/ui/playback-rate-button 11.33 kB 56.03 kB
/ui/playback-rate-radio-group 10.94 kB 56.03 kB
/ui/popover 9.12 kB 56.03 kB
/ui/poster 8.80 kB 56.03 kB
/ui/quality 8.97 kB 56.03 kB
/ui/quality-radio-group 11.28 kB 56.03 kB
/ui/seek-button 11.39 kB 56.03 kB
/ui/seek-indicator 13.26 kB 56.03 kB
/ui/slider 14.59 kB 56.03 kB
/ui/status-announcer 11.03 kB 56.03 kB
/ui/status-indicator 13.54 kB 56.03 kB
/ui/thumbnail 9.97 kB 56.03 kB
/ui/time 10.81 kB 56.03 kB
/ui/time-slider 16.86 kB 56.03 kB
/ui/title 8.09 kB 56.03 kB
/ui/tooltip 9.98 kB 56.03 kB
/ui/volume-indicator 13.55 kB 56.03 kB
/ui/volume-popover 15.70 kB 56.03 kB
/ui/volume-slider 13.20 kB 56.03 kB
🧩 @videojs/core — no changes
Entries (76)
Entry Initial Lazy
. 13.52 kB —
/dom 24.20 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 — 2 small size changes
Path Base initial PR initial Initial diff Lazy diff
/dom 5.25 kB 5.24 kB -11 B (-0.2%) —
/string 239 B 278 B +39 B (+16.3%) —
Entries (13)
Entry Initial
/array 271 B
/dom 5.24 kB
/events 320 B
/function 414 B
/i18n 249 B
/jwt 176 B
/object 535 B
/predicate 297 B
/percent 281 B
/string 278 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 — 1 small size change
Path Base initial PR initial Initial diff Lazy diff
/dom 4.00 kB 3.99 kB -3 B (-0.1%) —
Entries (3)
Entry Initial
. 3.29 kB
/dom 3.99 kB
/media-tracks 2.05 kB
📦 @videojs/mux — 1 small size change
Path Base initial PR initial Initial diff Lazy diff
. 1.24 kB 1.26 kB +22 B (+1.7%) —
📦 @videojs/mux-audio — 1 small size change
Path Base initial PR initial Initial diff Lazy diff
. 142.22 kB 142.29 kB +72 B (+0.0%) —
Entries (2)
Entry Initial
. 142.29 kB
/spf 22.99 kB
📦 @videojs/mux-data — no changes
📦 @videojs/mux-video — 1 small size change
Path Base initial PR initial Initial diff Lazy diff
/spf 33.26 kB 33.30 kB +37 B (+0.1%) —
Entries (2)
Entry Initial
. 142.05 kB
/spf 33.30 kB
📦 @videojs/native-hls-video — no changes
📦 @videojs/playerjs-video — no changes
📦 @videojs/shaka-video — no changes
📦 @videojs/spf — no changes
Entries (7)
Entry Initial
. 4.56 kB
/dom 7.89 kB
/hls 28.58 kB
/media-tracks 507 B
/hls-background-video 16.67 kB
/hls-audio 21.58 kB
/hls-video 31.96 kB
📦 @videojs/spotify-audio — no changes
📦 @videojs/tiktok-video — no changes
📦 @videojs/twitch-video — no changes
📦 @videojs/other — no changes
Entries (3)
Entry Initial
video.js 390 B
video.js/package.json 593 B
video.js/errors 1.04 kB
📦 @videojs/vimeo-video — no changes
📦 @videojs/wistia-video — 1 small size change
Path Base initial PR initial Initial diff Lazy diff
. 1.91 kB 1.91 kB -1 B (-0.1%) —
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.

@netlify

netlify Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for vjs-registry ready!

Name Link
🔨 Latest commit d83dff2
🔍 Latest deploy log https://app.netlify.com/projects/vjs-registry/deploys/6acd57d3f5dbbbacd8648709
😎 Deploy Preview https://deploy-preview-9478--vjs-registry.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.

@mihar-22
mihar-22 added this pull request to stack #9480 October 12, 2026 22:47

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant