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

Commit

Permalink
docs: use update import for defineLazyEventHandler (#8767)
Browse files Browse the repository at this point in the history
  • Loading branch information
suruaku committed Nov 7, 2022
1 parent 12767ff commit 07dc5fd
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 { defineLazyHandler } from 'h3'
import { defineLazyEventHandler } from 'h3'

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

0 comments on commit 07dc5fd

Please sign in to comment.