<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">Le ven. 8 août 2025 à 09:35, Jonas Smedegaard <<a href="mailto:jonas@jones.dk">jonas@jones.dk</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Quoting Jérémy Lal (2025-08-08 08:38:20)<br>
> Le jeu. 7 août 2025 à 18:25, Daniel Baumann <<a href="mailto:daniel@debian.org" target="_blank">daniel@debian.org</a>> a écrit :<br>
> <br>
> > Package: nodejs<br>
> > Version: 22.14.0+dfsg-1<br>
> > Tags: experimental<br>
> ><br>
> > Hi,<br>
> ><br>
> > it would be nice if you could upload 22.18 to experimental, it has 'Type<br>
> > stripping is enabled by default' now and would be convenient to have.<br>
> ><br>
> <br>
> Sure ! However "type stripping" needs some parts of swc, and i'm not sure<br>
> debian already has them (but the good thing is that Jonas already started<br>
> working on them).<br>
<br>
It would help if someone could identify exactly which parts of swc are<br>
needed.</blockquote><div><br></div><div>nodejs uses "amaro", a wasm build of swc.</div><div>It seems to include many swc features...</div><div>I propose adding support for the default behavior of nodejs now (type stripping),</div><div>and add more features later (for example, type transform is available with a runtime nodejs flag).</div><div><br></div><div>Given that, the short answer is</div><div>swc_ts_fast_strip,</div><div>see</div><div><a href="https://github.com/nodejs/amaro/blob/main/deps/swc/bindings/binding_typescript_wasm/Cargo.toml">https://github.com/nodejs/amaro/blob/main/deps/swc/bindings/binding_typescript_wasm/Cargo.toml</a></div><div><br></div><div>Jérémy</div><div><br></div></div></div>