Skip to content

Commit 0b9f88b

Browse files
committed
feat: add linkedom as explicit dependency for takumi renderer
1 parent 9be7b8d commit 0b9f88b

4 files changed

Lines changed: 50 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
"devalue": "catalog:",
8181
"execa": "catalog:",
8282
"image-size": "catalog:",
83+
"linkedom": "catalog:",
8384
"magic-string": "catalog:",
8485
"mocked-exports": "catalog:",
8586
"nuxt-site-config": "catalog:",

pnpm-lock.yaml

Lines changed: 48 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ catalog:
6363
image-size: ^2.0.2
6464
jest-image-snapshot: ^6.5.1
6565
json-editor-vue: ^0.18.1
66+
linkedom: ^0.18.9
6667
magic-string: ^0.30.21
6768
mocked-exports: ^0.1.1
6869
nuxt: ^4.2.2

src/runtime/server/og-image/takumi/nodes.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type { OgImageRenderEventContext } from '../../../types'
2-
// @ts-expect-error optional dependency
32
import { parseHTML } from 'linkedom'
43
import { htmlDecodeQuotes } from '../../util/encoding'
54
import { fetchIsland } from '../../util/kit'

0 commit comments

Comments
 (0)