Skip to content

Commit

Permalink
docs: fix the wasm example in "migration from v2" (#8853)
Browse files Browse the repository at this point in the history
  • Loading branch information
sodatea committed Jun 29, 2022
1 parent a4a634d commit 1a498f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/migration.md
Expand Up @@ -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()
})
Expand Down

0 comments on commit 1a498f7

Please sign in to comment.