File tree Expand file tree Collapse file tree 4 files changed +37
-37
lines changed
src/runtime/server/og-image/bindings/satori Expand file tree Collapse file tree 4 files changed +37
-37
lines changed Original file line number Diff line number Diff line change 8787 "pkg-types" : " ^2.3.0" ,
8888 "playwright-core" : " ^1.55.0" ,
8989 "radix3" : " ^1.1.2" ,
90- "satori" : " ^0.15.2 " ,
90+ "satori" : " ^0.18.3 " ,
9191 "satori-html" : " ^0.3.2" ,
9292 "sirv" : " ^3.0.2" ,
9393 "std-env" : " ^3.9.0" ,
Original file line number Diff line number Diff line change 1- import _satori , { init } from 'satori/wasm'
2- import initYoga from 'yoga-wasm-web'
1+ import satori , { init } from 'satori/standalone'
32import { readWasmFile } from '../../../util/wasm'
43
54const wasm = readWasmFile ( 'yoga-wasm-web/dist/yoga.wasm' )
6- . then ( async yoga => await initYoga ( yoga ) )
75
86export default {
97 initWasmPromise : new Promise < void > ( ( resolve ) => {
10- wasm . then ( ( yoga ) => {
11- init ( yoga )
8+ wasm . then ( async ( yoga ) => {
9+ await init ( yoga )
1210 resolve ( )
1311 } )
1412 } ) ,
15- satori : _satori ,
13+ satori,
1614}
Original file line number Diff line number Diff line change 1- import { init } from 'satori'
2- import _satori from 'satori/wasm'
3- import initYoga from 'yoga-wasm-web'
1+ import satori , { init } from 'satori/standalone'
42
53const wasm = import ( 'yoga-wasm-web/dist/yoga.wasm?module' as string )
6- . then ( async yoga => await initYoga ( yoga . default || yoga ) )
74
85export default {
96 initWasmPromise : new Promise < void > ( ( resolve ) => {
10- wasm . then ( ( yoga ) => {
11- init ( yoga )
7+ wasm . then ( async ( yoga ) => {
8+ await init ( yoga )
129 resolve ( )
1310 } )
1411 } ) ,
15- satori : _satori ,
12+ satori,
1613}
You can’t perform that action at this time.
0 commit comments