zachleat, (edited )
@zachleat@zachleat.com avatar

could it be real

could it be happening

ESM config, async config in @eleventy

tonymottaz,

@zachleat @eleventy yay!! This is awesome, great work 👏👏

zachleat,
@zachleat@zachleat.com avatar

@tonymottaz @eleventy thanks Tony!!

eaton,
@eaton@phire.place avatar

@zachleat Holy shit, congratulations! Having moved a couple of tangly projects from CJS to ESM I have IMMENSE respect for the work I know it took to do this. I'm super excited!

tanepiper,
@tanepiper@tane.codes avatar

@eaton @zachleat I prefer ESM but its implementation is a pox on application development for the backend.

zachleat,
@zachleat@zachleat.com avatar

@eaton Thank you so much Jeff! Yay!

zachleat,
@zachleat@zachleat.com avatar

yes it works with your existing CommonJS project too 👀

jgarber,
@jgarber@mastodon.cc avatar

@zachleat Does this work through the exports config in Eleventy’s package.json…?

zachleat,
@zachleat@zachleat.com avatar

@jgarber it’s using .mjs or .js with type in package.json.

Do you mean for packages that export multiple formats?

jgarber,
@jgarber@mastodon.cc avatar

@zachleat Ah, gotcha!

Yeah, I was referencing packages exporting multiple formats.

I’ve been spending a lot of time on this docs page recently, so it was top-of-mind:

https://nodejs.org/api/packages.html

jgarber,
@jgarber@mastodon.cc avatar
zachleat,
@zachleat@zachleat.com avatar

it took a lot of work to get here 😅

rob,
@rob@hyem.tech avatar

@zachleat oooh can’t wait to try it 🤩

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • everett
  • osvaldo12
  • magazineikmin
  • thenastyranch
  • rosin
  • normalnudes
  • Youngstown
  • Durango
  • slotface
  • ngwrru68w68
  • kavyap
  • mdbf
  • InstantRegret
  • JUstTest
  • ethstaker
  • GTA5RPClips
  • tacticalgear
  • Leos
  • anitta
  • modclub
  • khanakhh
  • cubers
  • cisconetworking
  • megavids
  • provamag3
  • tester
  • lostlight
  • All magazines