Skip to content

Commit d2b7484

Browse files
committed
fix: use NitroConfig instead
1 parent 299fc85 commit d2b7484

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@
8181
"std-env": "^3.7.0",
8282
"terminate": "^2.6.1",
8383
"ufo": "^1.4.0",
84-
"unwasm": "^0.3.7",
8584
"vanilla-jsoneditor": "^0.22.0",
8685
"yoga-wasm-web": "^0.3.3"
8786
},

pnpm-lock.yaml

+3-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/runtime/types.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ import type { ResvgRenderOptions } from '@resvg/resvg-js'
44
import type { SatoriOptions } from 'satori'
55
import type { AllowedComponentProps, Component, ComponentCustomProps, VNodeProps } from '@vue/runtime-core'
66
import type { SharpOptions } from 'sharp'
7-
import type { NitroApp } from 'nitropack'
8-
import type { UnwasmPluginOptions as WasmOptions } from 'unwasm/plugin'
7+
import type { NitroApp, NitroConfig } from 'nitropack'
98
import type { OgImageComponents } from '#nuxt-og-image/components'
109

1110
export interface OgImageRenderEventContext {
@@ -142,7 +141,7 @@ export interface RuntimeCompatibilitySchema {
142141
resvg: 'node' | 'wasm' | 'wasm-fs' | false
143142
satori: 'node' | 'wasm' | 'wasm-fs' | false
144143
sharp: 'node' | false
145-
wasm?: WasmOptions
144+
wasm?: NitroConfig['wasm']
146145
}
147146

148147
export type CompatibilityFlags = Partial<Omit<RuntimeCompatibilitySchema, 'wasm'>>

0 commit comments

Comments
 (0)