Muhammad Hamza 59e2f82766
Improve js_callback example (#2611)
* improve js_callback example

it now loads two modules:
1. imp.js
2. unimp.js

imp.js is loaded at page load whereas unimp.js is loaded when requested. A fallback is displayed during loading using Suspense

* Hash is not hardcoded anymore

* pre_build hook to build the post build hook binary

* fmt

* add .gitignore for trunk_post_build executable

* move js imports to bindings module, upadte README
2022-04-19 01:42:46 +05:00

4 lines
59 B
JavaScript

export function bye() {
return "unimportant message"
}