Fixed the build warnings.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import Hls from 'hls.js';
|
||||
import Hls from 'hls.js/light';
|
||||
import { useEffect, useRef } from 'react';
|
||||
|
||||
export function VideoPlayer({
|
||||
|
||||
Vendored
+8
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user