Why you should avoid CommonJs on your client-side javascript
CommonJs and ECMAScript module are the most famous module system in the javascript ecosystem. Before we consider why we should not use the CommonJs module system on the client-side, let's look at what exactly CommonJs and ESM are and how do they work...
pranshushah.hashnode.dev4 min read
Manh Do
Programming
Great article. How can I import a package which only publish their code as esm without having to set type: "module" in my package.json?