Zach’s ugly mug (his face) Zach Leat­herman

Eleventy v3 with ESM support now on the canary channel

December 18, 2023

The very first Eleventy v3 alpha release is out in the wild and you can try it out on your web site. The two big flagship features (so far) are ESM support (while keeping CommonJS support) and asynchronous configuration callbacks in both ESM and CommonJS.

eleventy.config.js (in a CommonJS project) or eleventy.config.cjs (in an ESM project):

module.exports = async function(eleventyConfig) {
	// …
}

eleventy.config.js (in an ESM project):

export default async function(eleventyConfig) {
	// …
}

Try it out!

Read more: 11ty.dev/blog/canary-eleventy-v3/

Screenshot image for https://www.11ty.dev/blog/canary-eleventy-v3/

Zach Leatherman is a builder for the web at Font Awesome and the creator of Build Awesome (née Eleventy/11ty), an award-winning open source website generator. He measures website performance with speedlify and at one point became too fixated on web fonts. He has given 86 talks in nine different countries at events like Beyond Tellerrand, Smashing Conference, Jamstack Conf, CSSConf, and The White House. Learn more about Zach »