From 1a498f7dde4d515f2f1697ad6007618af76ee861 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Wed, 29 Jun 2022 20:23:24 +0800 Subject: [PATCH] docs: fix the wasm example in "migration from v2" (#8853) --- docs/guide/migration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/migration.md b/docs/guide/migration.md index 8f73f4b055494d..3be22c3bc96f3d 100644 --- a/docs/guide/migration.md +++ b/docs/guide/migration.md @@ -100,7 +100,7 @@ You can use `?init` which is similar to the previous behavior. -import init from 'example.wasm' +import init from 'example.wasm?init' --init().then((instance) => { +-init().then((exports) => { +init().then(({ exports }) => { exports.test() })