Skip to content

Commit 5c76bbc

Browse files
committed
fix(player): include provider file name hashes in cdn bundle
1 parent a4fe4e0 commit 5c76bbc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/vidstack/rollup.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,9 @@ function defineCDNBundle({ dev = false, layout } = {}) {
264264
format: 'esm',
265265
dir: getOutputDir(),
266266
chunkFileNames: `chunks/vidstack-[hash].js`,
267+
entryFileNames: (chunk) => {
268+
return chunk.name.startsWith('vidstack') ? `[name].js` : `[name]-[hash].js`;
269+
},
267270
paths: {
268271
'media-icons': 'https://cdn.jsdelivr.net/npm/media-icons@next/dist/lazy.js',
269272
'media-captions': 'https://cdn.jsdelivr.net/npm/media-captions@next/dist/prod.js',

0 commit comments

Comments
 (0)