Jonathan Kelley ee67a041d2 feat: turn interpreter into crate 3 年之前
..
src ee67a041d2 feat: turn interpreter into crate 3 年之前
Cargo.toml ee67a041d2 feat: turn interpreter into crate 3 年之前
README.md ee67a041d2 feat: turn interpreter into crate 3 年之前
build.rs ee67a041d2 feat: turn interpreter into crate 3 年之前
interpreter.js ee67a041d2 feat: turn interpreter into crate 3 年之前
interpreter.ts ee67a041d2 feat: turn interpreter into crate 3 年之前
tsconfig.json ee67a041d2 feat: turn interpreter into crate 3 年之前

README.md

JS Interpreter

After diffing old and new trees, the Dioxus VirtualDom produces patches that are used to modify the existing Dom. We can send these patches anywhere - including targets without WASM support.

In renderers with support for JavaScript, we use the interpreter from this repository - written in TypeScript - to patch the Dom. This lets us circumvent any overhead on the Rust <-> Dom boundary and keep consistency in our interpreter implementation in web/webview targets.

For now - both Dioxus Web and Dioxus Desktop (webview) use the same interpreter code with tweaks.