[Pkg-javascript-devel] Bug#1110524: Bug#1110524: Bug#1110524: Bug#1110524: new upstream (22.18)
Jérémy Lal
kapouer at melix.org
Mon Aug 11 16:06:45 BST 2025
Le ven. 8 août 2025 à 09:59, Jérémy Lal <kapouer at melix.org> a écrit :
>
>
> 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
>
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)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20250811/a9814bfe/attachment.htm>
More information about the Pkg-javascript-devel
mailing list