News for hackers. Stuff that matters.
Re:The TypeScript compiler is now implemented internally wit... by cypress66 on Wednesday November 02, 2022 @04:03PM (#33442157)
And that's how it should work imo. But if you enable esm (which you might need in the future because of packages being esm only) you can't use those, only .js.

That's because typescript developers are dead set that they don't want to transpile the imports, they just want to copy paste them into the resulting file when running tsc.

Re:The TypeScript compiler is now implemented internally wit... by conaclos on Wednesday November 02, 2022 @05:19PM (#33443051)
This could change with an ongoing work to allow ts extension [1].

[1] https://github.com/microsoft/TypeScript/issues/37582

Re:The TypeScript compiler is now implemented internally wit... by iainmerrick on Wednesday November 02, 2022 @07:20PM (#33444230)
That doesn’t look like an issue that’s going to be resolved any time soon. Lots of comments which read like people digging in their heels to preserve the current behavior.
Re:The TypeScript compiler is now implemented internally wit... by conaclos on Thursday November 03, 2022 @05:38AM (#33448844)
It was in the 4.9 iteration plan [1], and is now in the 5.0 iteration plan [2]. They also talk of this in a design meeting [3] and a member of TS team seems committed to it.

[1] https://github.com/microsoft/TypeScript/issues/50457

[2] https://github.com/microsoft/TypeScript/issues/51362

[3] https://github.com/microsoft/TypeScript/issues/51302

Re:The TypeScript compiler is now implemented internally wit... by iainmerrick on Thursday November 03, 2022 @09:27AM (#33450619)
Well, I would love to see it, so I hope I’m wrong and you’re right!
Re:The TypeScript compiler is now implemented internally wit... by bakkoting on Thursday November 03, 2022 @02:23PM (#33455211)
You'll only be able to use that if you are using the non-default `--noEmit` configuration, which requires the use of some other tool to strip types. Even after that change, using `tsc` to strip types will still force you to write `.js` in your imports.