Skip to content

drexhage/pixel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Local development

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.

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