Blog: Improved error messaging for require(ESM) in Node.js

from blog Zach Leatherman’s Activity Feed, | ↗ original
The The EleventyEleventy code-base is now written using ESM. code-base is now written using ESM. However, Eleventy projects can be written using CommonJS or ESM (and we’ll continue to support both moving forward).However, Eleventy projects can be written using CommonJS or ESM (and we’ll continue to support both moving forward). As Eleventy is a command line tool, this offers a bit of wiggle room navigating the CommonJS/ESM divide. That is, until we started bundling application plugins in the core library.As Eleventy is a command line tool, this offers a bit of wiggle room navigating the CommonJS/ESM divide. That is, until we started bundling application plugins in the core library. Consider this application configuration file,...Consider this application configuration file,...