Skip to content

Support ESM in configs and plugins#1383

Open
zodern wants to merge 9 commits intomasterfrom
feature/esm
Open

Support ESM in configs and plugins#1383
zodern wants to merge 9 commits intomasterfrom
feature/esm

Conversation

@zodern
Copy link
Copy Markdown
Owner

@zodern zodern commented Feb 20, 2026

This PR removes babel, and fully migrates to ESM (except for the e2e tests, which are still cjs so we can use mocha's watch feature).

ESM and top level await is supported in configs. This allows config files to use async api's to create the config, such as loading a list of servers from the digital ocean api, or using a secret manager to get the env variables.

Plugins can also use ESM.

@zodern
Copy link
Copy Markdown
Owner Author

zodern commented Feb 20, 2026

Lint will fail since the old version of eslint we use doesn't support top level await. Eslint will be updated in another PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant