If you want to develop on the rust side and the svelte side at the same time, then you need to make some code adjustments beforehand.
- In
package.jsonadjust the wasm packages to point to the local builds
- "@drexhage/engine": "latest",
- "@drexhage/common-ui": "latest",
+ "@drexhage/engine": "file:///../crates/engine/pkg",
+ "@drexhage/common-ui": "file:///../crates/common-ui/pkg",- In
vite.config.jsuncomment the wasm pack instruction
- //wasmPack(['../crates/engine', '../crates/common-ui'])
+ wasmPack(['../crates/engine', '../crates/common-ui'])