I am a software engineer with a passion for computer graphics. I have experience in working with a diverse range of technology stacks ranging from front-end frameworks to deep neural networks.
Location
Alesund, Norway
Education
MSc. in Simulation & Visualization, B. Tech. in Computer Science
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. :)
Can you explain to me why it is 'very hacky' in your opinion and why my solution for linking TS + Rust + WebComponents is worse?
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. :)
There are better ways to provide improvement suggestions on such an edge case.