Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
One of the libraries I used most that went full-ESM is Chalk. They released v5 over a year-and-a-half ago (November 2021) with ESM-only support and haven't updated v4 - their last iteration that supported CommonJS - since. If you go into their GitHub Issues section, you'll see a number of issues raised about CommonJS support, most of which are just responded to with a link to a post they made about switching over. Fair enough. I guess if I had to constantly answer the same question over and over, I might do the same.
This is a project (the back-end (./) and the front as well (/client)) where I had to modify one or two imports, to add something like `import('@seald-io/nedb').default`.
If i need to support commons and esm i just use .cjs, i did it here, you can see the usage examples.
If i need to support commons and esm i just use .cjs, i did it here, you can see the usage examples.
Related posts
- Despidiéndome de Console.log
- Command Line Application: Bank Loan Tracker [Node]
- Can I have some code reviews ?
- No TypeScript, only JS, reactivity fever ? replaced by HTMX (only basic right now, in-place research & pagination, TODO ? more in-place.
- An open source Listings web-app. JavaScript all the way ! Please star if you like. Contribution is welcome ❤️