From e3faa618bfa5761e34cfc4de80f351683813bc00 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Mon, 12 Jun 2023 13:49:39 +0200 Subject: [PATCH] Use esm module for hls.js (#16878) --- src/components/ha-hls-player.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/ha-hls-player.ts b/src/components/ha-hls-player.ts index 3943abb615..cf3ed5a526 100644 --- a/src/components/ha-hls-player.ts +++ b/src/components/ha-hls-player.ts @@ -109,7 +109,8 @@ class HaHLSPlayer extends LitElement { private async _startHls(): Promise { const masterPlaylistPromise = fetch(this.url); - const Hls: typeof HlsType = (await import("hls.js/dist/hls.light")).default; + const Hls: typeof HlsType = (await import("hls.js/dist/hls.light.mjs")) + .default; if (!this.isConnected) { return;