Summary
In this chapter, we saw how to run a WebAssembly project with bundlers such as webpack and Parcel. Parcel and webpack make it easy for JavaScript developers to run and develop Rust and WebAssembly projects. Then, we installed wasm-pack
and used it to run the project. Finally, we used wasm-pack
to pack and publish the WebAssembly module to npm.
In the next chapter, we will explore how to share complex objects between Rust and WebAssembly with wasm-bindgen
.