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.18.3 " ,
90+ "satori" : " ^0.15.2 " ,
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/standalone'
1+ import _satori , { init } from 'satori/wasm'
2+ import initYoga from 'yoga-wasm-web'
23import { readWasmFile } from '../../../util/wasm'
34
45const wasm = readWasmFile ( 'yoga-wasm-web/dist/yoga.wasm' )
6+ . then ( async yoga => await initYoga ( yoga ) )
57
68export default {
79 initWasmPromise : new Promise < void > ( ( resolve ) => {
8- wasm . then ( async ( yoga ) => {
9- await init ( yoga )
10+ wasm . then ( ( yoga ) => {
11+ init ( yoga )
1012 resolve ( )
1113 } )
1214 } ) ,
13- satori,
15+ satori : _satori ,
1416}
Original file line number Diff line number Diff line change 1- import satori , { init } from 'satori/standalone'
1+ import { init } from 'satori'
2+ import _satori from 'satori/wasm'
3+ import initYoga from 'yoga-wasm-web'
24
35const wasm = import ( 'yoga-wasm-web/dist/yoga.wasm?module' as string )
6+ . then ( async yoga => await initYoga ( yoga . default || yoga ) )
47
58export default {
69 initWasmPromise : new Promise < void > ( ( resolve ) => {
7- wasm . then ( async ( yoga ) => {
8- await init ( yoga )
10+ wasm . then ( ( yoga ) => {
11+ init ( yoga )
912 resolve ( )
1013 } )
1114 } ) ,
12- satori,
15+ satori : _satori ,
1316}
You can’t perform that action at this time.
0 commit comments