Skip to content

Commit

Permalink
fix(player): add media-icons/element to external deps
Browse files Browse the repository at this point in the history
  • Loading branch information
mihar-22 committed Mar 26, 2024
1 parent 2c56c58 commit ac7acf6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions packages/vidstack/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,14 @@ const MODE_WATCH = process.argv.includes('-w'),
/** @type {Record<string, string | false>} */
const MANGLE_CACHE = !MODE_TYPES ? await buildMangleCache() : {};

const NPM_EXTERNAL_PACKAGES = ['hls.js', 'dashjs', 'media-captions', 'media-icons'],
CDN_EXTERNAL_PACKAGES = ['media-captions', 'media-icons'],
const NPM_EXTERNAL_PACKAGES = [
'hls.js',
'dashjs',
'media-captions',
'media-icons',
'media-icons/element',
],
CDN_EXTERNAL_PACKAGES = ['media-captions', 'media-icons', 'media-icons/element'],
PLUGINS_EXTERNAL_PACKAGES = ['vite', 'rollup', /webpack/, /rspack/, 'esbuild', 'unplugin'];

// Styles
Expand Down Expand Up @@ -316,6 +322,7 @@ function defineCDNBundle({ dev = false, input, dir, file, legacy = false }) {
'media-captions': legacy
? 'https://cdn.jsdelivr.net/npm/media-captions@next/dist/prod.js'
: 'https://cdn.vidstack.io/captions',
'media-icons/element': 'https://cdn.vidstack.io/icons',
},
manualChunks(id) {
if (dev) return file;
Expand Down
2 changes: 1 addition & 1 deletion packages/vidstack/src/providers/vimeo/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ export class VimeoProvider
this._ctx.qualities[QualitySymbol._setAuto](isAuto, trigger);
this._ctx.qualities[ListSymbol._select](undefined, true, trigger);
} else {
this._ctx.qualities[ListSymbol._select](newQuality, true, trigger);
this._ctx.qualities[ListSymbol._select](newQuality ?? undefined, true, trigger);
}
}

Expand Down

0 comments on commit ac7acf6

Please sign in to comment.