mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 23:22:02 +00:00
docs: use update import for defineLazyEventHandler
(#8767)
This commit is contained in:
parent
12767fffd3
commit
07dc5fd01e
@ -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(
|
const { exports: { sum } } = await loadWasmInstance(
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
() => import('~/server/wasm/sum.wasm')
|
() => import('~/server/wasm/sum.wasm')
|
||||||
|
Loading…
Reference in New Issue
Block a user