Replies: 2 comments
-
Note: I've realized that the wasm-pack output example I used in that writeup is old and doesn't reflect current wasm-pack output. I have not yet succeeded in getting a simple ES module built by current wasm-pack to work under Next.js. I have just contributed an example to webpack demonstrating simple usage of such a module: webpack/webpack#14313 but trying to integrate that same module in Next.js I hit several roadblocks, which I am in the process of writing up in a concise way. |
Beta Was this translation helpful? Give feedback.
-
See writeup and reproduction steps at #29362 |
Beta Was this translation helpful? Give feedback.
-
Describe the feature you'd like to request
I want it to be fairly straightforward to use a Rust WebAssembly module created by wasm-bindgen in a Next.js project
Describe the solution you'd like
With reference to https://github.com/gthb/try-to-use-wasm-in-next.js/blob/main/README.md I would like:
Describe alternatives you've considered
Building the Rust WebAssembly module differently or Babel-compiling it, so that it doesn't have import statements, so it doesn't need to be ESM. I did not quickly find success that way.
Beta Was this translation helpful? Give feedback.
All reactions