1
1
mirror of https://github.com/go-gitea/gitea synced 2025-09-11 03:08:28 +00:00

Switch to @resvg/resvg-wasm for generate-images (#35415)

Use the WASM module of [`resvg-js`](https://github.com/thx/resvg-js) to
replace `fabric` and the problematic native `canvas` dependency. WASM
works cross-platform so we can include it in the main `package.json`.
This commit is contained in:
silverwind
2025-09-05 23:06:02 +02:00
committed by GitHub
parent 09d1f359d5
commit 89b4be057b
11 changed files with 24 additions and 1281 deletions

9
pnpm-lock.yaml generated
View File

@@ -35,6 +35,9 @@ importers:
'@primer/octicons':
specifier: 19.15.5
version: 19.15.5
'@resvg/resvg-wasm':
specifier: 2.6.2
version: 2.6.2
'@silverwind/vue3-calendar-heatmap':
specifier: 2.0.6
version: 2.0.6(tippy.js@6.3.7)(vue@3.5.18(typescript@5.8.3))
@@ -797,6 +800,10 @@ packages:
'@primer/octicons@19.15.5':
resolution: {integrity: sha512-FCXPTlXlHvAS3rRBd1C/xVBYSYzPPwS8tNcUxnvUYK6L4/d+zUy2KExLtzW+L9xKo2z8J9uY+c1VCsNRf+b4MQ==}
'@resvg/resvg-wasm@2.6.2':
resolution: {integrity: sha512-FqALmHI8D4o6lk/LRWDnhw95z5eO+eAa6ORjVg09YRR7BkcM6oPHU9uyC0gtQG5vpFLvgpeU4+zEAz2H8APHNw==}
engines: {node: '>= 10'}
'@rolldown/pluginutils@1.0.0-beta.29':
resolution: {integrity: sha512-NIJgOsMjbxAXvoGq/X0gD7VPMQ8j9g0BiDaNjVNVjvl+iKXxL3Jre0v31RmBYeLEmkbj2s02v8vFTbUXi5XS2Q==}
@@ -5481,6 +5488,8 @@ snapshots:
dependencies:
object-assign: 4.1.1
'@resvg/resvg-wasm@2.6.2': {}
'@rolldown/pluginutils@1.0.0-beta.29': {}
'@rollup/plugin-commonjs@22.0.2(rollup@2.79.2)':