docs: add type module to cdn imports

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Darius Cepulis
2026-03-04 15:01:01 -06:00
co-authored by Claude Opus 4.6
parent 1e69d1b94a
commit 853585b2d0
@@ -14,7 +14,7 @@ const CDN_BASE = 'https://cdn.jsdelivr.net/npm/@videojs/html@next/dist/default/d
function generateCdnCode(useCase: UseCase, skin: Skin): string {
if (useCase === 'background-video') {
return `<script>
return `<script type="module">
import '${CDN_BASE}/background/player.js';
import '${CDN_BASE}/background/skin.js';
</script>
@@ -23,7 +23,7 @@ function generateCdnCode(useCase: UseCase, skin: Skin): string {
const { group, skinFile } = getSkinImportParts(skin);
return `<script>
return `<script type="module">
import '${CDN_BASE}/${group}/player.js';
import '${CDN_BASE}/${group}/${skinFile}.js';
</script>