querkmachine / beeps.website

My personal interweb site where I really just put whatever I want.
https://beeps.website
MIT License
4 stars 0 forks source link

Transition config scripts to ESM format (Eleventy 3.0) #35

Open querkmachine opened 7 months ago

querkmachine commented 7 months ago

ES Modules seem to be the future of importing and exporting JavaScript, and I'm increasingly hitting up against dependencies that have transitioned to only support use in ESM, forcing me to use older versions that lack more recent features and bugfixes.

Eleventy currently does not natively support configuration files being in ESM format, but this support is being added in Eleventy 3.0 (https://github.com/11ty/eleventy/pull/3074).

It's probably worth moving off CJS format at some point soon after this becomes available.

querkmachine commented 5 months ago

There's now a 'canary' version of Eleventy 3 available that is stable enough to probably be usable. https://www.11ty.dev/blog/canary-eleventy-v3/

querkmachine commented 5 months ago

Work in progress branch https://github.com/querkmachine/beeps.website/tree/eleventy-esm