docs: use update import for defineLazyEventHandler (#8767)

This commit is contained in:
Iljs Путлер Капут 2022-11-07 13:47:38 +02:00 committed by GitHub
parent 12767fffd3
commit 07dc5fd01e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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')