mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
Add the ./live-hls subpath export (build entry + package export) and a LiveHlsEngineSignals type. Add a bare sandbox template (live-hls-engine) that wires createLiveHlsEngine to a raw <video> — no player/skin — and logs playback state, for end-to-end live-playback verification. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
17 lines
621 B
TypeScript
17 lines
621 B
TypeScript
import type { UserConfig } from 'tsdown';
|
|
import { defineConfig } from 'tsdown';
|
|
import { type PackageBuildMode, packageBuildConfig, packageBuildModes } from '../../build/tsdown.ts';
|
|
|
|
const createConfig = (mode: PackageBuildMode): UserConfig => ({
|
|
...packageBuildConfig(mode, 'neutral'),
|
|
entry: {
|
|
index: 'src/index.ts',
|
|
dom: 'src/dom.ts',
|
|
hls: 'src/playback/engines/hls/index.ts',
|
|
'live-hls': 'src/playback/engines/live-hls/index.ts',
|
|
'background-video': 'src/playback/engines/background-video/index.ts',
|
|
},
|
|
});
|
|
|
|
export default defineConfig(packageBuildModes.map((mode) => createConfig(mode)));
|