Closed lulu-berlin closed 5 years ago
wasm-pack creates 2 JS files (besides the .wasm file that we are inlining): rusty_typescript.js and rust_typescript_bg.js.
wasm-pack
.wasm
rusty_typescript.js
rust_typescript_bg.js
It will be easier to inject this code in TypeScript if this was only 1 JS file.
We will use webpack with gulp to bundle them together.
webpack
gulp
An inportant concern here is to make sure that the code is inside a namespace.
wasm-pack
creates 2 JS files (besides the.wasm
file that we are inlining):rusty_typescript.js
andrust_typescript_bg.js
.It will be easier to inject this code in TypeScript if this was only 1 JS file.
We will use
webpack
withgulp
to bundle them together.An inportant concern here is to make sure that the code is inside a namespace.