Le ven. 8 août 2025 à 09:35, Jonas Smedegaard <jo...@jones.dk> a écrit :
> Quoting Jérémy Lal (2025-08-08 08:38:20) > > Le jeu. 7 août 2025 à 18:25, Daniel Baumann <dan...@debian.org> 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 Jérémy
-- Pkg-javascript-devel mailing list Pkg-javascript-devel@alioth-lists.debian.net https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel