Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
Update sum.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
suruaku committed Nov 7, 2022
1 parent 4427eca commit 98034dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/experimental/wasm/server/api/sum.ts
@@ -1,6 +1,6 @@
import { lazyEventHandler } from 'h3'
import { defineLazyEventHandler } from 'h3'

export default lazyEventHandler(async () => {
export default defineLazyEventHandler(async () => {
const { exports: { sum } } = await loadWasmInstance(
// @ts-ignore
() => import('~/server/wasm/sum.wasm')
Expand Down

0 comments on commit 98034dc

Please sign in to comment.