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.json
adjust 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.js
uncomment the wasm pack instruction
- //wasmPack(['../crates/engine', '../crates/common-ui'])
+ wasmPack(['../crates/engine', '../crates/common-ui'])