mirror of
https://github.com/zoriya/v10.git
synced 2026-08-05 05:37:21 +00:00
docs: add type module to cdn imports
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
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>
|
||||
|
||||
Reference in New Issue
Block a user