Eleventy v3 with ESM support now on the canary channel
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/