DEV Community

Discussion on: WebAssembly + Rust + TypeScript project setup

Collapse
 
piperunner profile image
Pipe Runner

This not only is very hacky, but the official rustwasm.github.io site has better ways of doing this.

Collapse
 
krzysztofkaczy9 profile image
Krzysztof Kaczyński • Edited

Can you explain to me why it is 'very hacky' in your opinion and why my solution for linking TS + Rust + WebComponents is worse?

Collapse
 
piperunner profile image
Pipe Runner

If you go through the trouble of adding webpack then why wouldn't you use the wasm-pack-plugin? In the approach that you have mentioned, you will have to compile your code manually everytime you make changes in your rust code. I mean no disrespect but the steps I am mentioning are mentioned in the wasm-pack document itself. Hope this answers your question. :)

Thread Thread
 
rileyseaburg profile image
Riley Seaburg

There are better ways to provide improvement suggestions on such an edge case.