Le ven. 8 août 2025 à 09:59, Jérémy Lal <[email protected]> a écrit :
> > > Le ven. 8 août 2025 à 09:35, Jonas Smedegaard <[email protected]> a écrit : > >> Quoting Jérémy Lal (2025-08-08 08:38:20) >> > Le jeu. 7 août 2025 à 18:25, Daniel Baumann <[email protected]> a >> écrit : >> > >> > > Package: nodejs >> > > Version: 22.14.0+dfsg-1 >> > > Tags: experimental >> > > >> > > Hi, >> > > >> > > it would be nice if you could upload 22.18 to experimental, it has >> 'Type >> > > stripping is enabled by default' now and would be convenient to have. >> > > >> > >> > Sure ! However "type stripping" needs some parts of swc, and i'm not >> sure >> > debian already has them (but the good thing is that Jonas already >> started >> > working on them). >> >> It would help if someone could identify exactly which parts of swc are >> needed. > > > nodejs uses "amaro", a wasm build of swc. > It seems to include many swc features... > I propose adding support for the default behavior of nodejs now (type > stripping), > and add more features later (for example, type transform is available with > a runtime nodejs flag). > > Given that, the short answer is > swc_ts_fast_strip, > see > > https://github.com/nodejs/amaro/blob/main/deps/swc/bindings/binding_typescript_wasm/Cargo.toml > A bit longer answer now that I'm trying to package amaro: These direct b-deps are missing: swc_error_reporters = { workspace = true } swc_ts_fast_strip = { workspace = true, features = ["wasm-bindgen"] } (There are at least two other features missing in other librust-* b-deps)

