zachleat.com is now building using the very first alpha release of @11ty.dev v3.0:
You can see my upgrade PR below. It was—well—a pretty straightforward upgrade:
Zach Leatherman 3434 replies 5454 likes1414 reposts Original on MastodonOriginal on BlueskyAlso posted to Mastodon.
34 replies
-
@jpoehnelt @zachleat yeah you can go full type: module if you want but you will have to change all your .js to .cjs and then migrate to ESM syntax (and rename back to .js) as fast or slow as you’d like
@gunnarsson @zachleat yeah I’ll write all this up soon!
@zachleat Congratulations, Zach. A milestone! 👏👏👏
@nathanbottomley thank you!! more to come!
-
-
@stubbornella Thanks Nicole! More to come!! 🥳
While zachleat.com was a CJS to CJS migration, I’m currently updating 11ty.dev to be Eleventy v3 using ESM.
That work is in progress here:
https://github.com/11ty/11ty-website/pull/1636Live demo:
https://eleventy-v3--11ty.netlify.app/@zachleat I was wondering if ESM was going to be in v3! I was thinking it would make sharing code between eleventy and browser super easy for my Rebrew thing.
@rob yeah! It’s the “flagship” feature for the release 🏆
https://www.11ty.dev/ is now built with Eleventy v3 *exclusively* using ESM (no CommonJS)
View the final PR https://github.com/11ty/11ty-website/pull/1636
(Please let me know if you see anything… weird 😅)
@zachleat If you started this after doing zachleat.com yesterday, then that’s...comforting. 1d is fast.
@pauleveritt just changing require to import and `module.exports` to `export default` 🏆
@pauleveritt I should also note that none of that work is required. I could have just used CJS with Eleventy 3 (or even incremental conversion using .cjs)
@zachleat Anything weird? Your button seems too small.
@iamschulz haha my button size integration test is passing
If you want to try out the new Eleventy v3 alpha releases, read this:
-
-
@zachleat @eleventy I was waiting for the esm config from long time👍 . Easy migration of my 2 edtech sites as always, dead simple. https://github.com/ed-components/ed-components/commit/9faa399a57db85317d9a73b93abfed7439ccde15 https://github.com/ed-components/ed-components/commit/9faa399a57db85317d9a73b93abfed7439ccde15