Skip to content

Support wasm32-wasi target for SSR #295

Closed
@andreanidouglas

Description

@andreanidouglas

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions