Replies: 1 comment 4 replies
-
Isn't CommonJS basically the past? Supporting outdated (coding) practices is something that is fine to drop between major versions if you ask me. Otherwise you end up with the Python 2 vs 3 story.
The obvious solution would be to fix that module I guess. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In considering the building process, we could implement a bundler like Tsup, which would facilitate the creation of a bundle compatible with both ESM and CJS formats.
I recently encountered this issue within an npm module that relies on gettext-parser as a dependency, which exposes a CommonJS (CJS) binary script. Consequently, I find myself compelled to utilize an older version of gettext-parser.
I believe implementing this change could offer several benefits for individuals like myself, who utilize it with a CLI script, or for those who, due to various constraints, must resort to using CJS.
Beta Was this translation helpful? Give feedback.
All reactions