Closed
Description
for server rendering, if you want to run the wasm in a runner without v8 functionality, you would probably will need a wasm32-wasi target.
unfortunately, due to some dependencies, mostly wasm-bindgen, leptos code won't run, because of binds to JS specific imports.
$ cargo build --target=wasm32-wasi --release
$ wasmtime /target/wasm32-wasi/release/lepts-ssr-worker.wasm
Error: Failed to instantiate component 'lepts-ssr-worker'
Caused by:
unknown import: `__wbindgen_placeholder__::__wbindgen_object_drop_ref` has not been defined
Error: exit status: 1