mirror of
https://github.com/visioncortex/vtracer.git
synced 2026-08-30 17:05:57 -07:00
Add WebP decoding to the Node/wasm package
image-webp is pure Rust and compiles to wasm32; brings the npm package's input formats closer to the CLI/Python surface. Wasm grows ~115 KB (486 KB -> 601 KB). Also gitignore nodejs/.npmrc. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -2,3 +2,5 @@
|
||||
/target
|
||||
/node_modules
|
||||
Cargo.lock
|
||||
# npm auth token — per-project, never commit
|
||||
.npmrc
|
||||
|
||||
+2
-2
@@ -19,8 +19,8 @@ vtracer = { version = "1.0.0-alpha.1", path = "../crates/vtracer" }
|
||||
wasm-bindgen = "0.2"
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde-wasm-bindgen = "0.6"
|
||||
# Pure-Rust decoders that compile to wasm32-unknown-unknown.
|
||||
image = { version = "0.25", default-features = false, features = ["png", "jpeg", "gif", "bmp"] }
|
||||
# Pure-Rust decoders that compile to wasm32-unknown-unknown (webp via image-webp).
|
||||
image = { version = "0.25", default-features = false, features = ["png", "jpeg", "gif", "bmp", "webp"] }
|
||||
|
||||
[profile.release]
|
||||
opt-level = "s"
|
||||
|
||||
Reference in New Issue
Block a user