Skip to content

Commit

Permalink
chore: fix safari v13 support (#3218)
Browse files Browse the repository at this point in the history
  • Loading branch information
KaustubhKumar05 authored Sep 3, 2024
1 parent c8f51db commit f0bab27
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/hls-stats/src/adapters/BaseAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ import { HlsPlayerStats } from '../interfaces';
export abstract class BaseAdapter {
hlsInstance: Hls;
videoEl: HTMLVideoElement;
hlsStatsState: HlsPlayerStats = {};
hlsStatsState: HlsPlayerStats;
constructor(hlsInstance: Hls, videoEl: HTMLVideoElement) {
this.hlsInstance = hlsInstance;
this.videoEl = videoEl;
this.hlsStatsState = {};
}
abstract startGatheringStats(): void;
abstract finishGatheringStats(): void;
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-webapp.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async function main() {
const external = [...Object.keys(pkg.dependencies || {}), ...Object.keys(pkg.peerDependencies || {})];
const loader = { '.js': 'jsx', '.svg': 'dataurl', '.png': 'dataurl' };
const define = { 'process.env': JSON.stringify(process.env) };
const target = 'es6';
const target = ['safari11', 'es6'];
const plugins = [
PostCssPlugin.default({
plugins: [autoprefixer],
Expand Down
2 changes: 1 addition & 1 deletion scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async function main() {
const commonOptions = {
entryPoints: source,
bundle: true,
target: 'es6',
target: ['safari11', 'es6'],
external,
tsconfig: 'tsconfig.json',
minify: true,
Expand Down

0 comments on commit f0bab27

Please sign in to comment.