652 karma · joined December 4, 2018
To quote the parent commenter:
> They seem to be able to solve the immediate problem,
but not long term
Someone else in this thread mentioned that npm can be used to manage pure front end libraries, which is a fair point.
If not, how can you claim you have solved the problem?
Not necessarily disagreeing with you, but if everyone started doing this, we will be in XY problem city.
There are many libraries that have switched to esm only (meaning they don't support commonjs), but even today, the best way to find the last commonjs version of those libraries is to go to the "versions" tab on npm, and find the most downloaded version in the last month, and chances are, that will be the last commonjs version.
Yes, in a vacuum, esm is objectively a better than commonjs, but how tc39 almost intentionally made it incompatible with commonjs (via top-level awaits) is just bizarre to me.
EDIT: yes it is.