test again...

This commit is contained in:
2026-03-17 01:04:34 +01:00
parent 0034799a92
commit e2f3dbff18
2 changed files with 9 additions and 9 deletions

View File

@@ -2,15 +2,12 @@
import { getStreamContext } from '$lib/streamContext.svelte.ts';
import { shorthandCode, formatTrackTime, formatDate } from '$lib/utils.ts';
import { jumpToTrack } from './Player.svelte';
import { browser } from '$app/environment';
import { Carta } from 'carta-md';
import DOMPurify from 'isomorphic-dompurify';
let carta = $state(new Carta());
if (browser) {
import('isomorphic-dompurify').then(({ default: DOMPurify }) => {
carta = new Carta({ sanitizer: DOMPurify.sanitize });
const carta = new Carta({
sanitizer: DOMPurify.sanitize
});
}
const ctx = getStreamContext();

View File

@@ -2,5 +2,8 @@ import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
export default defineConfig({
plugins: [sveltekit()]
});
plugins: [sveltekit()],
ssr: {
noExternal: [],
external: ['carta-md', 'isomorphic-dompurify']
}