chore: migrate to svelte 5
This commit is contained in:
@@ -12,11 +12,17 @@
|
||||
smartLists: true,
|
||||
smartypants: false,
|
||||
});
|
||||
/* @type {string} */
|
||||
export let src;
|
||||
|
||||
/**
|
||||
* @typedef {Object} Props
|
||||
* @property {string} src
|
||||
*/
|
||||
|
||||
/** @type {Props} */
|
||||
let { src } = $props();
|
||||
|
||||
/* @type {Element[]} */
|
||||
let content = [];
|
||||
let content = $state([]);
|
||||
|
||||
onMount(async () => {
|
||||
const DOM_PARSER = new DOMParser();
|
||||
|
||||
Reference in New Issue
Block a user