mirror of
https://github.com/OpenCut-app/OpenCut.git
synced 2026-07-13 21:52:53 +02:00
fix: use published opencut-wasm package
This commit is contained in:
@@ -19,3 +19,24 @@ All exports are documented in the [TypeScript definitions](./opencut_wasm.d.ts).
|
||||
## Source
|
||||
|
||||
Functions are implemented in Rust under [`rust/crates/`](../crates/). This package is the compiled WebAssembly output — do not edit it directly.
|
||||
|
||||
## Local development
|
||||
|
||||
The web app depends on the published `opencut-wasm` package by default. If you are editing the WASM source in this repo and want `apps/web` to use your local build instead:
|
||||
|
||||
```bash
|
||||
# From the repo root
|
||||
bun run build:wasm
|
||||
|
||||
cd rust/wasm/pkg
|
||||
bun link
|
||||
|
||||
cd ../../../apps/web
|
||||
bun link opencut-wasm
|
||||
```
|
||||
|
||||
While you work, rebuild on changes from the repo root:
|
||||
|
||||
```bash
|
||||
bun dev:wasm
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user