|
|
|
|
|
by wruza
1605 days ago
|
|
Typescript & webpack support esm input and or output. Before emiting output, you have to run them in the same package. Themselves they (and the whole ecosystem around) are not ready for that. Of course it’s not an issue if all you do is emitting a frontend, which doesn’t share runtime with package.json directory. But if you’re using webpack for node, for which these authors maintain so many modules, things are fucked up. I advise you to try to webpack a typescripted “type”:”module” project before celebrating. Existing in two worlds sucks So does existing in zero worlds. I’m not arguing against ESM. I’m arguing against actions which break half of workflows of those who have no choice and can not control whether ESM to be possible or not, for no good reason. To the point I wish NPM had a username filter so I could skip packages which wouldn’t work for a while no matter what I do or like personally. I don’t mind ESM, but it’s not there yet. |
|