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() })