[Pkg-javascript-devel] Bug#1110524: Bug#1110524: Bug#1110524: new upstream (22.18)

Jérémy Lal kapouer at melix.org
Fri Aug 8 08:56:48 BST 2025


Le ven. 8 août 2025 à 09:35, Jonas Smedegaard <jonas at 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 <daniel at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20250808/63227642/attachment.htm>


More information about the Pkg-javascript-devel mailing list