-
Notifications
You must be signed in to change notification settings - Fork 337
Document wasmpack/webpack configuration behaviour for building Rust #771
Comments
Any progress on this? It would be great. If I want to use webpack and rust in the same worker, am I best to use the webpack loader for wasm or do something else? |
👋 - hi, we don't have plans on prioritizing documenting this functionality at the moment. that being said, I believe this npm module may help with what you're looking to do. |
this tool also demonstrates how to create a hybrid project |
@EverlastingBugstopper Yes using wasm-pack-plugin allows achieving the required functionality. However setting The wasm module gets uploaded only when The only reasonable solution I see in the long term is allowing the use of |
cc @xtuc |
|
Cancel that, I have it working. I don't know what hacks @shalzz was referring to, I've played around with this a lot and didn't find any hacks I had to implement to get workers to work with
But the size hasn't actually changed - I assume the warning was just muted for It's working here in case it helps anyone. This change also fixed this bug which I asked about on the community forum but never got any help with. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi, are there no plans to work on this? |
hey @shalzz ! sorry for the dead air. if i understand correctly, the ask is for a more flexible approach which would support both a rust wasm module and typescript in the worker. I think that's a great goal; we don't have cycles in the near term for this, however I do want to keep it in the issue tracker. |
Wow! Thank you. I'm honored. |
This issue has been automatically marked as stale because it has not had recent activity in the last 180 days. It will be closed if no further activity occurs in the next week. Please feel free to comment if you'd like it to remain open, and thank you for your contributions. |
This issue has been automatically closed because it has not had recent activity. You may re-open the issue if it is still relevant. |
💡 Feature request
Overview and problem statement
#724 only documented custom webpack behaviour, in lieu of that also document how a rust wasm module is built and packaged for cloudflare workers.
This will allow people to combine custom webpack configuration with wasm builds.
Basic example
For example having both typescript and rust in the same worker.
The text was updated successfully, but these errors were encountered: