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

perf(vjsc): render stylesheets on a worker thread - #2972

Closed
mihar-22 wants to merge 3 commits into
refactor/vjsc-build-boundaryfrom
perf/vjsc-render-worker
Closed

mihar-22 wants to merge 3 commits into
refactor/vjsc-build-boundaryfrom
perf/vjsc-render-worker

Conversation

@mihar-22

@mihar-22 mihar-22 commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

Summary

Moves VJSC's post-Tailwind CSS rendering onto one worker thread. In the skins build that step was 441 ms of main-thread work across 134 unique file renders, and moving it takes skins generate from about 2.2 s to 1.75 s wall (build step 1.83 s → 1.43 s).

Last of three stacked PRs: #2971 (merged) → #2970 → this.

Changes

  • Tailwind compilation, the design system, and the files it watches stay on the main thread. The worker only turns a file's compiled CSS into its final CSS, which is a pure step (renderCompiledFile).
  • The pool runs on Piscina. It starts a worker when the first job arrives, keeps it between a build's bursts of renders, frees it after ten idle seconds, and never lets an idle worker keep a build or dev server alive.
  • One worker by default. Two and four workers measured no faster and used more CPU. VJSC_RENDER_WORKERS sets the count, and 0 keeps rendering on the main thread.
  • A worker reports a failed render instead of throwing it, and the main thread renders that file again. The error it throws is the real one, with its class and Lightning CSS's source location, and the worker stays in use.
  • A rejected job means the worker failed: that job, and every one after it, renders on the main thread. Piscina leaves jobs pending when a worker fails to load or exits before it is ready, so either one aborts every job in flight. Builds run from source (the worker entry exists only in the built package) render on the main thread too.
  • Tinypool was tried first, but a worker that exits mid-job leaves that job pending forever.
  • renderStylesheets renders an owner's files concurrently and keeps them in order. A failure reports the earliest failed file in that order.

Testing

  • New pool tests with a fixture worker:
    • Results come back in order.
    • A failed render throws the main thread's error, and the worker stays in use.
    • Each of these falls back to the main thread: a crash (including jobs queued behind it), a worker that fails to load or exits while loading, and a failed send.
  • renderStylesheets reports the earliest failed file in document order.
  • Checked against the built package:
    • A Lightning CSS SyntaxError from a worker equals the in-process error: same class, loc, source, fileName, and data.
    • Workers that exit while loading, with code 0 or 1, settle every job through the main thread in about 50 ms.
    • A job after the ten-second idle timeout still runs on a fresh worker.
  • Tests: vjsc (296), @videojs/skins (93), @videojs/html (482), @videojs/react (600), @videojs/core (1577), and the rest of the workspace. pnpm typecheck, pnpm lint, pnpm check:workspace, and pnpm test:shadcn pass.
  • Generated skins output is byte-identical to refactor(packages): restructure vjsc and the skins build #2970's.
  • Vite dev server: HTML and React skin roots, and a React component imported by a skin, transform cleanly with the worker running
  • Timing on a lightly loaded machine, best of three: build 1829 ms with no worker, 1426 ms with one, 1425 ms with two, 1428 ms with four
  • The Piscina pool and the previous hand-written pool, built alternately under the same load: medians of about 1695 ms and 1715 ms, which is within noise

🤖 Generated with Claude Code

@vercel

vercel Bot commented Sep 24, 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 Sep 29, 2026 9:54pm UTC

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

Summary

Classification: inconclusive — the workflow failed while loading the build task graph, before any Playwright test ran.

Failed run

Run: https://github.com/videojs/v10/actions/runs/36059925879
Head: 7a8716f3ba4e87fe2c8a97a6f3980fdc4fa65cbc
Affected checks: Registry consumers and Build for browser suites failed; E2E Chromium, skin parity, sandbox, and snapshot jobs were skipped.

Evidence

  • Both failed jobs stop resolving vjsc/plugins from packages/core/vite.config.ts: vjsc/dist/plugins/index.js is absent.
  • No Playwright job executed, and the run has no artifacts; consequently there is no report or trace to inspect.
  • This PR changes only VJSC stylesheet worker/render files and packages/vjsc/vite.config.ts; it does not change packages/core/vite.config.ts or the package dependency graph.
  • The base SHA f012160c7419d05273d97e71f018d62d2ec166c1 failed identically in its E2E run: https://github.com/videojs/v10/actions/runs/36059903151.

Likely cause

Verified: a clean CI checkout cannot load Core’s Vite config because its vjsc/plugins workspace dependency has not produced dist/plugins/index.js yet. Inference: this is a pre-existing build-boundary/task-graph ordering problem on refactor/vjsc-build-boundary, not a demonstrated regression from the worker-rendering diff.

Recommended actions

  1. Restore a clean pnpm build:packages path for the base branch, focusing on the Core config import, VJSC package exports, and workspaceTaskDependencies() build ordering.
  2. Once that succeeds, run the browser workflow again and inspect its Playwright artifacts if a test then fails.
  3. Keep the worker PR’s fallback tests, but do not treat this run as E2E coverage of them.

@mihar-22
mihar-22 added this pull request to stack #2973 September 24, 2026 21:18
@netlify

netlify Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for vjs10-site ready!

Name Link
🔨 Latest commit 4814aca
🔍 Latest deploy log https://app.netlify.com/projects/vjs10-site/deploys/6abc3346d869fa00082bfc4b
😎 Deploy Preview https://deploy-preview-2972--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 Sep 24, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for vjs-registry ready!

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

@pkg-pr-new

pkg-pr-new Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
@videojs/cdn

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

@videojs/cli

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

@videojs/core

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

@videojs/element

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

@videojs/html

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

@videojs/media

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

@videojs/react

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

@videojs/spf

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

@videojs/store

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

@videojs/utils

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

@videojs/cloudflare-video

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

@videojs/dash-video

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

@videojs/hlsjs-video

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

@videojs/mux-audio

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

@videojs/mux-video

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

@videojs/native-hls-video

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

@videojs/shaka-video

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

@videojs/spotify-audio

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

@videojs/tiktok-video

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

@videojs/twitch-video

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

@videojs/vimeo-video

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

@videojs/wistia-video

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

@videojs/youtube-video

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

@videojs/google-cast

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

@videojs/mux-data

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

commit: 4814aca

@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

📦 Bundle Size Report

🎨 @videojs/html — no changes
Presets (7)
Entry Initial Lazy
/video (default) 64.22 kB 56.03 kB
/video (default + hls) 66.06 kB 56.03 kB
/video (minimal) 64.76 kB 56.03 kB
/video (minimal + hls) 66.45 kB 56.03 kB
/audio (default) 48.26 kB 56.03 kB
/audio (minimal) 48.50 kB 56.03 kB
/background 11.86 kB 56.03 kB
Media (18)
Entry Initial
/media/mux-video 3.02 kB
/media/mux-audio 2.69 kB
/media/background-video 1.16 kB
/media/cloudflare-video 2.91 kB
/media/dash-video 2.62 kB
/media/hls-audio 23.41 kB
/media/hls-background-video 17.44 kB
/media/hls-video 33.63 kB
/media/hlsjs-video 2.63 kB
/media/mux-background-video 17.42 kB
/media/native-hls-video 7.57 kB
/media/shaka-video 2.63 kB
/media/spotify-audio 3.02 kB
/media/tiktok-video 3.13 kB
/media/twitch-video 2.93 kB
/media/vimeo-video 2.90 kB
/media/wistia-video 607 B
/media/youtube-video 2.90 kB
Players (5)
Entry Initial Lazy
/video/player 9.97 kB 56.03 kB
/audio/player 6.14 kB 56.03 kB
/background/player 4.46 kB 56.03 kB
/live-video/player 9.33 kB 56.03 kB
/live-audio/player 6.16 kB 56.03 kB
Skins (29)
Entry Type Initial Lazy
/video/minimal-skin.css css 8.26 kB —
/video/skin.css css 7.97 kB —
/video/minimal-skin js 63.18 kB 56.03 kB
/video/minimal-skin2 js 8.26 kB —
/video/skin js 62.81 kB 56.03 kB
/video/skin2 js 7.95 kB —
/audio/minimal-skin.css css 6.07 kB —
/audio/skin.css css 5.80 kB —
/audio/minimal-skin js 47.04 kB 56.03 kB
/audio/minimal-skin2 js 6.06 kB —
/audio/skin js 46.74 kB 56.03 kB
/audio/skin2 js 5.78 kB —
/background/skin.css css 141 B —
/background/skin js 10.11 kB 56.03 kB
/background/skin2 js 159 B —
/live-video/minimal-skin.css css 6.75 kB —
/live-video/skin.css css 6.65 kB —
/live-video/minimal-skin js 50.75 kB 56.03 kB
/live-video/minimal-skin2 js 6.76 kB —
/live-video/skin js 50.66 kB 56.03 kB
/live-video/skin2 js 6.64 kB —
/live-audio/minimal-skin.css css 4.77 kB —
/live-audio/skin.css css 4.68 kB —
/live-audio/minimal-skin js 36.18 kB 56.03 kB
/live-audio/minimal-skin2 js 4.77 kB —
/live-audio/skin js 36.11 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.52 kB 56.03 kB
/ui/alert-dialog 8.97 kB 56.03 kB
/ui/audio-track-radio-group 11.61 kB 56.03 kB
/ui/buffering-indicator 8.84 kB 56.03 kB
/ui/captions-button 11.76 kB 56.03 kB
/ui/captions-radio-group 11.65 kB 56.03 kB
/ui/cast-button 11.51 kB 56.03 kB
/ui/container 9.71 kB 56.03 kB
/ui/controls 9.03 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.70 kB 56.03 kB
/ui/error-dialog 12.62 kB 56.03 kB
/ui/fullscreen-button 11.50 kB 56.03 kB
/ui/gesture 9.96 kB 56.03 kB
/ui/hotkey 10.37 kB 56.03 kB
/ui/live-button 10.02 kB 56.03 kB
/ui/menu 19.17 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.30 kB 56.03 kB
/ui/menu-item-indicator 1.38 kB 56.03 kB
/ui/menu-radio-group 3.01 kB 56.03 kB
/ui/menu-radio-item 2.13 kB 56.03 kB
/ui/menu-separator 1.30 kB 56.03 kB
/ui/mute-button 11.52 kB 56.03 kB
/ui/pip-button 11.48 kB 56.03 kB
/ui/play-button 11.46 kB 56.03 kB
/ui/playback-rate-button 11.56 kB 56.03 kB
/ui/playback-rate-radio-group 11.61 kB 56.03 kB
/ui/popover 8.77 kB 56.03 kB
/ui/poster 9.15 kB 56.03 kB
/ui/quality-radio-group 12.11 kB 56.03 kB
/ui/seek-button 11.50 kB 56.03 kB
/ui/seek-indicator 12.95 kB 56.03 kB
/ui/seek-indicator-value 1.10 kB —
/ui/slider 11.88 kB 56.03 kB
/ui/slider-preview 2.01 kB 56.03 kB
/ui/status-announcer 10.86 kB 56.03 kB
/ui/status-indicator 13.25 kB 56.03 kB
/ui/status-indicator-value 1.10 kB —
/ui/thumbnail 10.58 kB 56.03 kB
/ui/time 11.29 kB 56.03 kB
/ui/time-slider 13.38 kB 56.03 kB
/ui/time-slider-chapter-title 9.04 kB 56.03 kB
/ui/time-slider-chapters 9.88 kB 56.03 kB
/ui/title 8.44 kB 56.03 kB
/ui/tooltip 10.13 kB 56.03 kB
/ui/tooltip-label 1.21 kB —
/ui/tooltip-shortcut 1.18 kB —
/ui/volume-indicator 13.26 kB 56.03 kB
/ui/volume-indicator-fill 1.11 kB —
/ui/volume-indicator-value 1.10 kB —
/ui/volume-popover 15.14 kB 56.03 kB
/ui/volume-slider 12.58 kB 56.03 kB
⚛️ @videojs/react — no changes
Presets (7)
Entry Initial Lazy
/video (default) 58.73 kB 56.03 kB
/video (default + hls) 59.21 kB 56.03 kB
/video (minimal) 58.87 kB 56.03 kB
/video (minimal + hls) 59.34 kB 56.03 kB
/audio (default) 45.69 kB 56.03 kB
/audio (minimal) 45.70 kB 56.03 kB
/background 908 B 56.03 kB
Media (22)
Entry Initial
/media/mux-video/hls-js 1.45 kB
/media/mux-video/spf 1.46 kB
/media/mux-audio/hls-js 1.12 kB
/media/mux-audio/spf 1.13 kB
/media/background-video 513 B
/media/cloudflare-video 1.81 kB
/media/dash-video 1.11 kB
/media/hls-audio 22.18 kB
/media/hls-background-video 17.46 kB
/media/hls-video 32.43 kB
/media/hlsjs-video 1.12 kB
/media/mux-audio 1.12 kB
/media/mux-background-video 17.46 kB
/media/mux-video 1.44 kB
/media/native-hls-video 6.21 kB
/media/shaka-video 1.11 kB
/media/spotify-audio 1.89 kB
/media/tiktok-video 1.81 kB
/media/twitch-video 1.84 kB
/media/vimeo-video 1.79 kB
/media/wistia-video 1.41 kB
/media/youtube-video 1.79 kB
Extensions (2)
Entry Initial
/extensions/google-cast 1.77 kB
/extensions/mux-data 1.80 kB
Players (5)
Entry Initial Lazy
/video/player 8.22 kB 56.03 kB
/audio/player 4.38 kB 56.03 kB
/background/player 2.64 kB 56.03 kB
/live-video/player 7.60 kB 56.03 kB
/live-audio/player 4.40 kB 56.03 kB
Skins (18)
Entry Type Initial Lazy
/video/minimal-skin.css css 8.09 kB —
/video/skin.css css 7.78 kB —
/video/minimal-skin js 58.75 kB 56.03 kB
/video/skin js 58.68 kB 56.03 kB
/audio/minimal-skin.css css 5.89 kB —
/audio/skin.css css 5.60 kB —
/audio/minimal-skin js 45.60 kB 56.03 kB
/audio/skin js 45.54 kB 56.03 kB
/background/skin.css css 97 B —
/background/skin js 518 B —
/live-video/minimal-skin.css css 6.60 kB —
/live-video/skin.css css 6.49 kB —
/live-video/minimal-skin js 48.58 kB 56.03 kB
/live-video/skin js 48.53 kB 56.03 kB
/live-audio/minimal-skin.css css 4.59 kB —
/live-audio/skin.css css 4.49 kB —
/live-audio/minimal-skin js 33.76 kB 56.03 kB
/live-audio/skin js 33.77 kB 56.03 kB
UI Components (39)
Entry Initial Lazy
/ui/airplay-button 11.22 kB 56.03 kB
/ui/alert-dialog 5.20 kB 56.03 kB
/ui/audio-track 8.35 kB 56.03 kB
/ui/audio-track-radio-group 10.78 kB 56.03 kB
/ui/buffering-indicator 8.40 kB 56.03 kB
/ui/captions-button 11.19 kB 56.03 kB
/ui/captions-radio-group 10.88 kB 56.03 kB
/ui/cast-button 11.22 kB 56.03 kB
/ui/controls 8.29 kB 56.03 kB
/ui/dialog 5.18 kB 56.03 kB
/ui/error-dialog 12.61 kB 56.03 kB
/ui/fullscreen-button 11.17 kB 56.03 kB
/ui/gesture 8.60 kB 56.03 kB
/ui/hotkey 8.99 kB 56.03 kB
/ui/live-button 9.53 kB 56.03 kB
/ui/menu 22.03 kB 56.03 kB
/ui/mute-button 11.22 kB 56.03 kB
/ui/pip-button 11.18 kB 56.03 kB
/ui/play-button 11.16 kB 56.03 kB
/ui/playback-rate 8.41 kB 56.03 kB
/ui/playback-rate-button 11.13 kB 56.03 kB
/ui/playback-rate-radio-group 10.85 kB 56.03 kB
/ui/popover 9.12 kB 56.03 kB
/ui/poster 8.61 kB 56.03 kB
/ui/quality 8.77 kB 56.03 kB
/ui/quality-radio-group 11.19 kB 56.03 kB
/ui/seek-button 11.18 kB 56.03 kB
/ui/seek-indicator 12.91 kB 56.03 kB
/ui/slider 14.39 kB 56.03 kB
/ui/status-announcer 10.81 kB 56.03 kB
/ui/status-indicator 13.32 kB 56.03 kB
/ui/thumbnail 9.77 kB 56.03 kB
/ui/time 10.60 kB 56.03 kB
/ui/time-slider 16.17 kB 56.03 kB
/ui/title 7.88 kB 56.03 kB
/ui/tooltip 9.99 kB 56.03 kB
/ui/volume-indicator 13.39 kB 56.03 kB
/ui/volume-popover 15.53 kB 56.03 kB
/ui/volume-slider 12.96 kB 56.03 kB
🧩 @videojs/core — no changes
Entries (76)
Entry Initial Lazy
. 13.39 kB —
/dom 23.47 kB 56.03 kB
/vjsc 1.90 kB —
/i18n 3.21 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 943 B
📦 @videojs/store — no changes
Entries (3)
Entry Initial
. 1.72 kB
/html 703 B
/react 512 B
🔧 @videojs/utils — no changes
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 — no changes
Entries (3)
Entry Initial
. 1.29 kB
/dom 4.11 kB
/media-tracks 2.05 kB
📦 @videojs/mux — no changes
📦 @videojs/mux-audio — no changes
Entries (2)
Entry Initial
. 136.09 kB
/spf 22.68 kB
📦 @videojs/mux-data — no changes
📦 @videojs/mux-video — no changes
Entries (2)
Entry Initial
. 135.91 kB
/spf 32.74 kB
📦 @videojs/native-hls-video — no changes
📦 @videojs/shaka-video — no changes
📦 @videojs/spf — no changes
Entries (7)
Entry Initial
. 4.55 kB
/dom 7.67 kB
/hls 28.08 kB
/media-tracks 507 B
/hls-background-video 16.45 kB
/hls-audio 21.27 kB
/hls-video 31.46 kB
📦 @videojs/spotify-audio — no changes
📦 @videojs/tiktok-video — no changes
📦 @videojs/twitch-video — no changes
📦 @videojs/other — no changes
Entries (3)
Entry Initial Lazy
video.js 71.75 kB 56.03 kB
video.js/package.json 608 B —
video.js/errors 1.03 kB —
📦 @videojs/vimeo-video — no changes
📦 @videojs/wistia-video — no changes
Entries (2)
Entry Initial
. 1.91 kB
/helpers 1.77 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.

Turning a file's Tailwind output into its final CSS is pure and was 441 ms of main-thread work in
the skins build. One worker now does it while Tailwind compilation, the design system, and its
watch files stay on the main thread, taking skins generate from about 2.2 s to 1.75 s wall. More
workers only added CPU. Builds from source, VJSC_RENDER_WORKERS=0, and any worker that fails to
start, receive a job, or stay alive render on the main thread instead.
Piscina starts workers as jobs arrive, keeps them between a build's bursts of renders, frees them
after ten idle seconds, and lets idle ones exit with the process, which the pool handled by hand.
Workers now report render errors as results, so a rejected job always means a failed worker, and
the pool renders it and every later job on the main thread. A worker that fails to load leaves its
jobs pending in Piscina, so a pool error aborts every job in flight. Tinypool was tried first, but
a worker that exits mid-job leaves its job pending forever.
…rors intact

A worker that exited before Piscina marked it ready left the jobs waiting for it pending without a
pool error, so a build or a dev-server transform could hang. The pool now counts the workers
Piscina announces as ready against the workers it removes; removing more than it announced aborts
every job in flight, and those jobs render on the main thread.

A render error crossed the thread as its name, message, and stack only, losing Lightning CSS's
source location and the error's class. Workers now only report that a render failed, and the main
thread renders that file again, which throws the error itself. Rendering is pure, so it fails the
same way, and the worker stays in use.

`renderStylesheets` still renders a document's files at once, but reports the earliest failed
file in document order rather than whichever failed first.

This branch was successfully deployed

1 active deployment
Preview — 4814acaa Deployed Sep 29, 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.

2 participants