mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-26 06:51:07 +00:00
Right now Webpack probably has the most mature support for loading wasm modules, so let's show off how to do that! Additionally this commits hello world as an example to the repository.
6 lines
79 B
JavaScript
6 lines
79 B
JavaScript
const js = import("./hello_world");
|
|
|
|
js.then(js => {
|
|
js.greet("World!");
|
|
});
|