From 4427ecab4132e5f25b27ed94fe9ebf6a12b42ab2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iljs=20=D0=9F=D1=83=D1=82=D0=BB=D0=B5=D1=80=20=D0=9A=D0=B0?= =?UTF-8?q?=D0=BF=D1=83=D1=82?= Date: Mon, 7 Nov 2022 12:56:50 +0200 Subject: [PATCH 1/2] Update sum.ts closes #8764 --- examples/experimental/wasm/server/api/sum.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/experimental/wasm/server/api/sum.ts b/examples/experimental/wasm/server/api/sum.ts index 67861970131..cb5e5ce09f4 100644 --- a/examples/experimental/wasm/server/api/sum.ts +++ b/examples/experimental/wasm/server/api/sum.ts @@ -1,6 +1,6 @@ -import { defineLazyHandler } from 'h3' +import { lazyEventHandler } from 'h3' -export default defineLazyHandler(async () => { +export default lazyEventHandler(async () => { const { exports: { sum } } = await loadWasmInstance( // @ts-ignore () => import('~/server/wasm/sum.wasm') From 98034dc7b2fdbebd558b16bb7d429fcd71a081f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iljs=20=D0=9F=D1=83=D1=82=D0=BB=D0=B5=D1=80=20=D0=9A=D0=B0?= =?UTF-8?q?=D0=BF=D1=83=D1=82?= Date: Mon, 7 Nov 2022 13:27:48 +0200 Subject: [PATCH 2/2] Update sum.ts --- examples/experimental/wasm/server/api/sum.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/experimental/wasm/server/api/sum.ts b/examples/experimental/wasm/server/api/sum.ts index cb5e5ce09f4..fbfd774cd88 100644 --- a/examples/experimental/wasm/server/api/sum.ts +++ b/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')