Re:Ask HN: Why does every package+module system become a Rub...
by eurasiantiger on Monday January 30, 2023 @08:17AM
(#34579181)
Just use .mjs extension for your code, add extensions to your imports and everything does just work.
[ Parent
| on HN ]
Re:Ask HN: Why does every package+module system become a Rub...
by noahtallen on Monday January 30, 2023 @06:50PM
(#34588484)
Except in typescript, where you have to import a file with the .js extension, despite the actual file being .ts: https://github.com/microsoft/TypeScript/issues/42151, https://github.com/microsoft/TypeScript/issues/49083, https://github.com/microsoft/TypeScript/issues/16577
This one issue (IMO) is preventing parts of the ecosystem from switching to esm.