Skip to main content

Search

Items tagged with: esm


#Pack11ty now uses @eleventy v3

Also, the code has been fully rewritten to integrate modern JavaScript features like ECMAScript Modules (aka #ESM), just like #Eleventy.

Both the plugin and the template repository (aka Eleventy Starter) have been updated.

Also, the assets are now processed with a combination of Eleventy's Custom template languages, Render plugin and Bundle plugin. 😍

The documentation will soon be updated accordingly.

pack11ty.dev/news/2024/11/08/n…


If you’re running a relatively recent version of Node.js – I’m on 22.x for Kitten¹ at the moment– and you use ES Modules (because, of course, you use ES Modules, right, because it’s almost 2025…) and you want to use .js extensions and not have to litter package.json files with "type": "module" all over the place, you can start Node with the following flag and it should Just Work™ ;)

--experimental-default-type

¹ kitten.small-web.org

#NodeJS #ESM #ECMAScript #JavaScript #modules