Closed ivanhofer closed 1 month ago
Unfortunately Ivan passed away while competing during a race: https://github.com/ivanhofer/typesafe-i18n/issues/739
I still get a bit sad everytime I come across a PR from him. You will be missed Ivan.
I thought I'd make a note of it here as it's likely you may be unaware and this PR has some merge conflicts that will never be addressed by the original author.
@benmccann I’m so sorry to hear that. Thank you for notifying us. I’ll close this PR, but I hope someone else may base their future work on top of it.
I need this package in an
esm
context so I took the time to convert it. There weren't that many things to change, so the process was straigt forward.build
script now outputscjs
andesm
code. In order to make the code run in anesm
context without setting"type": "module"
insidepackage.json
all generatedesm
files need to end with the.mjs
file extension. Therefor thefix-esm-output.js
script is needed.require
statements are rewritten usingimport
statements. This did remove the "lazy-import" behavior as dynamicimport
statements must useasync-await
. But the only place where this affects regular runtime code is whereesprima
get's used. But since it is a regular dependency ofrecast
nothing should fail.cjs
output.I hope this could be merged into the main project so I don't have to maintain a copy of it. Let me know if there are still some things missing.