mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
feat(spf) discrete signals and behavior objects (#1508)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
e3c1b28032
commit
8fa63c6567
@@ -4,7 +4,7 @@
|
||||
* Measure SPF bundle size
|
||||
*
|
||||
* Usage:
|
||||
* pnpm size # Measure playback engine
|
||||
* pnpm size # Measure the HLS engine entry (@videojs/spf/hls)
|
||||
* pnpm size:all # Measure all exports (all.ts)
|
||||
*/
|
||||
|
||||
@@ -13,7 +13,7 @@ import { readFileSync, writeFileSync } from 'node:fs';
|
||||
import { gzipSync } from 'node:zlib';
|
||||
|
||||
const measureAll = process.argv.includes('--all');
|
||||
const measureEngine = process.argv.includes('--playback-engine');
|
||||
const measureEngine = process.argv.includes('--hls');
|
||||
|
||||
let entry, label, bundlePath;
|
||||
|
||||
@@ -22,8 +22,8 @@ if (measureAll) {
|
||||
label = 'All Exports';
|
||||
bundlePath = './dist/all.js';
|
||||
} else if (measureEngine) {
|
||||
entry = 'dom/playback-engine/index.ts';
|
||||
label = 'Playback Engine';
|
||||
entry = 'playback/engines/hls/index.ts';
|
||||
label = 'HLS Engine';
|
||||
bundlePath = './dist/index.js';
|
||||
} else {
|
||||
entry = 'index.ts';
|
||||
|
||||
Reference in New Issue
Block a user