Skip to content

Commit 1f7fcf7

Browse files
committed
Revert "fix!: satori v0.18.3"
This reverts commit 08d5abc.
1 parent 08d5abc commit 1f7fcf7

File tree

4 files changed

+37
-37
lines changed

4 files changed

+37
-37
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
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",

pnpm-lock.yaml

Lines changed: 23 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
import satori, { init } from 'satori/standalone'
1+
import _satori, { init } from 'satori/wasm'
2+
import initYoga from 'yoga-wasm-web'
23
import { readWasmFile } from '../../../util/wasm'
34

45
const wasm = readWasmFile('yoga-wasm-web/dist/yoga.wasm')
6+
.then(async yoga => await initYoga(yoga))
57

68
export 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
}
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
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

35
const wasm = import('yoga-wasm-web/dist/yoga.wasm?module' as string)
6+
.then(async yoga => await initYoga(yoga.default || yoga))
47

58
export 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
}

0 commit comments

Comments
 (0)