vite-plugin-wasm-pack icon indicating copy to clipboard operation
vite-plugin-wasm-pack copied to clipboard

🦀 Vite plugin for rust wasm-pack

Results 20 vite-plugin-wasm-pack issues
Sort by recently updated
recently updated
newest added

The error given is ``` error when starting dev server: Error: ENOENT: no such file or directory, open '~/mre_vite_outside/my-crate/www/...js' at Object.openSync (node:fs:590:3) at Object.readFileSync (node:fs:458:35) at prepareBuild (~/mre_vite_outside/my-crate/www/node_modules/vite-plugin-wasm-pack/dist/index.js:125:47) at async...

Hi, I was asking myself if it is possible to start a server thanks to vite server that could watch wasm code changes, then run wasm-pack and hot reload itself...

For paths like `server.name/path`, the wasm modules load fine (from `server.name/assets/module_bg.wasm`). But for paths like `server.name/enitity/3324-3252-2352-2352`, Vite tries to load the wasm modules from `server.name/entity/assets/module_bg.wasm`, which fails. This is only...

I have been struggling to test components that use my Rust wasm-pack generated code. I narrowed down the problem to the invokation of wasm-pack's `await init()`. It looks like vitest...

When loading from a chrome extension, a `?t=` is added to the wasm file request, which results with a 404. This fixes it.

![image](https://user-images.githubusercontent.com/2645695/236224204-95cc98d7-d881-4ef9-98fa-0ecadf17d0eb.png) The file does in fact exist. ![image](https://user-images.githubusercontent.com/2645695/236224484-94e67d1a-890b-497f-84dc-856c150df36d.png)

on vite 5.2+, the middleware in this plugin which filters for request urls ending in `.wasm` is not handling all requests. after some fiddling I found removing this wrapping arrow...

[wee_alloc is unmaintained](https://rustsec.org/advisories/RUSTSEC-2022-0054.html) and has a memory leak

Hello everyone, This project was initially created when I started learning Rust. Due to personal reasons, I haven't been able to work with Rust and Vite for quite some time....

help wanted

I'm unable to use `wasm_bindgen(module="...") to call JS functions from Rust. I updated the [example](https://github.com/dingari/vite-plugin-wasm-pack/tree/example-with-module-function/example) with a simple demo. This is the error I get: ```shell Failed to resolve import...