Closed
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/
Activity