Skip to content

Commit

Permalink
release(extension-code): v0.7.0-beta.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sheepbox8646 committed Dec 3, 2024
1 parent 1edc1b9 commit 34e88f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions extensions/code/src/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@ const codes = slots.default
.map((vnode) => vnode.children)
.join("")
: "";
const content = ref(
await codeToHtml(codes, {
const content = ref<string>("");
(async () => {
content.value = await codeToHtml(codes, {
...options.shikiOptions,
lang: options.lang,
theme: options.theme,
}),
);
});
})();
</script>

<template>
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "ES2020",
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"target": "ESNext",
"lib": ["ESNext", "DOM", "DOM.Iterable"],
"useDefineForClassFields": true,
"customConditions": ["dev"],
"module": "ESNext",
Expand Down

0 comments on commit 34e88f9

Please sign in to comment.