News for hackers. Stuff that matters.
Re:Node Modules at War: Why CommonJS and ES Modules Can’t Ge... by wildpeaks on Thursday August 06, 2020 @09:30AM (#24070695)
Honestly, all I need is a standardized way to publish and consume packages directly as Typescript (right now you can point "main" & "types to it, but I'd rather something like export maps) because the transpilation should be done by the end user as you can't assume which build target they might prefer.
Re:Node Modules at War: Why CommonJS and ES Modules Can’t Ge... by Androider on Thursday August 06, 2020 @05:18PM (#24075569)
Typescript transpilation is already pretty slow when just used for your own application, if all the node_modules directory entries were in TS I'd probably be looking at hours for the transpilation.
Re:Node Modules at War: Why CommonJS and ES Modules Can’t Ge... by wildpeaks on Friday August 07, 2020 @03:56AM (#24079464)
I removed Babel from my toolchains a while ago (and instead use TS to transpile even dependencies), so the compilation times are fine.