Fixed the build warnings.

This commit is contained in:
2026-05-15 17:42:05 +03:30
parent 103a6298f6
commit 3a2bd57f23
3 changed files with 47 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
import Hls from 'hls.js';
import Hls from 'hls.js/light';
import { useEffect, useRef } from 'react';
export function VideoPlayer({

8
resources/js/types/hls-light.d.ts vendored Normal file
View File

@@ -0,0 +1,8 @@
// this well reduces hls-vendor from +500KB to +300KB n builds
declare module 'hls.js/light' {
import Hls from 'hls.js';
export * from 'hls.js';
export default Hls;
}