Logo
Explore Help
Sign In
fluencelabs/wasm-bindgen
1
0
Fork 0
You've already forked wasm-bindgen
mirror of https://github.com/fluencelabs/wasm-bindgen synced 2025-05-08 20:12:16 +00:00
Code Issues Projects Releases Wiki Activity
wasm-bindgen/examples/wasm-in-wasm/index.js

5 lines
142 B
JavaScript
Raw Normal View History

Add an example of namespaced APIs By creating wasm modules from Rust!
2018-03-22 17:39:48 -07:00
// For more comments about what's going on here, check out the `hello_world`
// example
Convert all examples to using wasm-pack This commit migrates all our examples to using `wasm-pack build` to compile their code and run `wasm-bindgen`. This should make it a bit easier to understand the examples as there's less to follow during the build step. Webpack projects are all using `@wasm-tool/wasm-pack-plugin` as well so the build step is simple `npm run serve`. Other examples which retain `build.sh` are just using `wasm-pack build` now
2019-01-08 15:14:15 -08:00
import('./pkg/wasm_in_wasm')
Add `catch(console.error)` to all examples Some examples have been failing to load in some browsers, and this ensures that whenever the promise to load Rust code fails we log any errors happening instead of accidentally failing silently. This helped debug a bit in #897
2018-09-28 13:54:29 -07:00
.catch(console.error);
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.7 Page: 67ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API