shakedown.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A community for live music fans with roots in the jam scene. Shakedown Social is run by a team of volunteers (led by @clifff and @sethadam1) and funded by donations.

Administered by:

Server stats:

293
active users

#esm

0 posts0 participants0 posts today

If you’re running a relatively recent version of Node.js – I’m on 22.x for Kitten¹ at the moment– and you use ES Modules (because, of course, you use ES Modules, right, because it’s almost 2025…) and you want to use .js extensions and not have to litter package.json files with "type": "module" all over the place, you can start Node with the following flag and it should Just Work™ ;)

--experimental-default-type

¹ kitten.small-web.org

Continued thread

The motivation for #semvar seems to be eliminating duplicated modules in your bundle, but it seems to me that with HTTP modules, the browser cache should handle duplicated modules just fine.

Bundling is an anti-pattern now that we have #ESM in the browser!

Replied in thread

@carlwgeorge @vermaden @samurro @tara @vkc @BrodieOnLinux

Cuz for #devs it was very convenient to target #CentOS and test against it since it's basically identical to #RHEL - minus the commercial support - which also drove adoption of #RedHat's distro.

  • Similar to how in many cases #OpenSUSE allowed most of the devs targeting #SLES & #SLED to get away not having to buy many machines and how the only.difference between #UbuntuLTS & #UbuntuPro are #Landscape, #ESM repos and getting 10years of paid per annum instead of 5 years free security updates.
#opensuse#sles#sled

> enough libraries use ES Modules that for many projects you need to either use ES Modules, or figure out how to interoperate ES Modules with your CommonJS code. At the same time, enough code still uses CommonJS that you often need to figure out how to include that legacy code in your otherwise-ES Module project.

borischerny.com/javascript,/ty

Boris Cherny’s Blog · NPM and NodeJS should do more to make ES Modules easy to useComing back to JavaScript and TypeScript after a few years neck deep in Python and Hack, I kept hitting a number of new, cryptic errors when running NodeJS code in my dev environment:

> The recent update in Node.js introduces an experimental feature that allows require() to synchronously load ESM graphs that do not contain top-level await. This feature is significant because it allows developers to use require() with ESM.

zacharylee.substack.com/p/nati

Web Developers · Native Support for CJS/ESM Interoperability Begins in Node.js 22By Zachary Lee