Support ESM configuration files
This package currently only supports CommonJS configuration files. CommonJS is being deprecated in favor of ES modules, and many projects have already moved to an all-ESM solution. In many of those projects, having to still use CommonJS for certain configuration files adds a lot of complexity and frustration.
One common issue is that in order to use CommonJS files in an ESM package, you have to rename the .js
extension to .cjs
, but many linters/build tools/custom functions don't yet support the new extension, leading to a broken build.