Astro and collections
It’s easy to organize and manage content in Eleventy through collections — e.g., your posts, as opposed to other content on your site — and, early in the development history of Astro, it had collections, too. However, that capability went away as Astro changed; and workarounds for it, often using the
Astro.glob() function, proved more complicated and, in some cases, problematic (as I’ve described).
That’s why I’m pleased to see that collections are coming back to Astro as of v.1.7.0, albeit in “experimental” status at this writing. I’ll hope that this feature (a.) stays around this time and (b.) proves to be as stable and enjoyable to use as was its predecessor.
Eleventy and ES modules
One of Eleventy’s biggest “I-love-it-but” aspects for even its most devoted fans has long been its inability to use ES modules. While many users probably never butt into the problem, more adventurous souls quickly find that some packages they’d like to use with Eleventy are rather opinionated about being ESM-only (or, at least, so these packages’ documentation suggests). This grows only more troublesome over time, since ES modules have been around since 2015. Although a few hacks have been proposed here and there to make Eleventy more ESM-friendly, no official solution has come from the Eleventy repo itself — at least, not yet.
But, now, I’ve seen that ESM support is coming in Eleventy 3.0, according to a recent comment by Eleventy creator/maintainer Zach Leatherman. Of course, Eleventy 2.0 is still in “canary” stage, albeit quite stable in my opinion, but Leatherman also noted it’ll go to production early in 2023; and, soon thereafter, some early builds of Eleventy 3.0 should start to appear. Following on this year’s addition of first-class support for web components through the introduction of WebC, the gaining at long last of ESM support — not to mention whatever else is coming in Eleventy 3.0 — is almost certain to give Eleventy a significant boost in the ongoing battle for mindshare among JS-based SSGs.
Latest commit (
4c23918b) for page file:
2023-03-05 at 10:40:50 PM CST.