ESM Configuration Tracking #824
thescientist13
started this conversation in
General
Replies: 1 comment
-
Good news, CosmicConfig now supports ESM! - cosmiconfig/cosmiconfig#224 (comment) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Overview
Coming out of the migration to ESM in #532, one of the "lagging" aspects of the migration is how tools handle their configuration files. Most of them actually do not support an ESM configuration file, so for these cases, you would have to use an extension of .cjs and still use CommonJS.
The below is a list of them, broken down between
dependencies
anddevDependencies
dependencies
The impact configuration files related to our plugins, like Babel, PostCSS, etc
mjs
extensions out of box cosmiconfig/cosmiconfig#224devDependencies
These impact configuration files for Greenwood's own development, like ESLint, StyleLint, etc
import.meta
Misc
Random stuff related to the ESM migration worth keeping loose track of
import
json support in NodesJS in cli/src/index.js, like for reading package.jsonrequire
forrequire.resolve.paths
, does there exist a similar convention for ESM, e.g.import.meta.resolve.paths
path
=>new URL
, more of a chore, and could be done postBeta Was this translation helpful? Give feedback.
All reactions