-
-
Notifications
You must be signed in to change notification settings - Fork 558
Closed
Labels
enhancementfeature: esmRelated to supporting ES Modules (in parallel to CommonJS)Related to supporting ES Modules (in parallel to CommonJS)
Milestone
Description
Node 13 projects can switch to ECMAScript Modules using "type": "module" in package.json, using .mjs files, or --input-type https://nodejs.org/docs/latest-v13.x/api/esm.html#esm_enabling
This causes problems with Eleventy, which uses require and CommonJS internally.
Here it is failing on a config file require:

Without a config file, it fails on 11ty.js files too:

Explore whether or not this is a possibility. Might need a major version bump? Might want to be prepared for Node 14 stable. We’re currently at Node 8+ right now but it exits maintenance very soon so we’ll need a major version bump to at least do Node 10+: https://nodejs.org/en/about/releases/
zachleat, justinfagnani, liamnewmarch, DominoPivot, MichaelSolati and 205 morepaulshryock, advaiyalad, mubaraqwahab, xandermann, visini and 2 morepaulshryock, advaiyalad, mubaraqwahab, xandermann, visini and 2 morepaulshryock, advaiyalad, mubaraqwahab, xandermann, visini and 8 morepaulshryock, advaiyalad, mubaraqwahab, xandermann, visini and 1 moreava-gunn, santicros, yklcs, advaiyalad, solanto and 9 more
Metadata
Metadata
Assignees
Labels
enhancementfeature: esmRelated to supporting ES Modules (in parallel to CommonJS)Related to supporting ES Modules (in parallel to CommonJS)