benjamn / recast

JavaScript syntax tree transformer, nondestructive pretty-printer, and automatic source map generator
MIT License
4.95k stars 346 forks source link

package output as `esm` + `cjs` #1314

Closed ivanhofer closed 1 month ago

ivanhofer commented 1 year ago

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.

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.

benmccann commented 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.

eventualbuddha commented 1 month ago

@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.