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

When I edit vite.config.ts while vite is running, it prints the following error: ``` [vite] vite.config.ts changed, restarting server... TypeError: Cannot read properties of null (reading 'name') ``` This error...

It's not unusual to have wasm-pack packages exported with different names, and since this is not yet supported by wasm-pack people have been using sed to replace the "name" field...

Seems to fail when used in a npm workspace. ![wasmPack error](https://user-images.githubusercontent.com/34522491/168929136-9d7ff0db-603a-4a2f-bc46-22f54312a4a8.png) > details of the error as it is expecting the package the projects `node_module` directory which is not possible...

Seems like I missed something in my initial PR as that made it work for `vite` but didn't work with `vite build` and `vite preview`. It seems newer versions of...

plugin fails with svelte ![image](https://user-images.githubusercontent.com/53856673/156633730-adb4d03a-d9a6-43dc-ad25-893d6389d4f9.png)

It looks like the plugin cannot properly bundle inlinejs, is there plan to support that? Add below code to example/my-crate/src/lib.rs, then the build will fail ```rust #[wasm_bindgen(inline_js = "export function...

https://github.com/rustwasm/wasm-pack/issues/1106 https://github.com/rustwasm/wasm-bindgen/issues/2779 maybe you could help with that

actual ```js // vite.config.js import wasmPack from 'vite-plugin-wasm-pack'; // only use local crate plugins: [ wasmPack(['./my-local-crate']), ], // only use npm crate, leave the first param to an empty array...

enhancement

My project that used to work, now throws an error ``` Internal server error: Failed to resolve import "wasm-launcher-extensions" from "src\components\elements\SteveRendered.svelte". Does the file exist? ```

Commands and outputs to reproduce: ``` $ git clone https://github.com/nshen/vite-plugin-wasm-pack.git && cd vite-plugin-wasm-pack/npm-crate-example ... $ node --version && wasm-pack --version v16.17.0 wasm-pack 0.10.3 $ yarn install && yarn dev yarn...