Support for top-level await in ESModule #118
Labels
bug
Something isn't working
dependencies
Pull requests that update a dependency file
esm
ES Modules related
jiti
jiti related
When the kysely.config.ts file contains top-level await or imports a file that has top-level await, and the package.json
type
field is set tomodule
, runningkysely migrate:make <migration name>
errors-out with the following messageIn my case, this top-level await is used to fetch the database password from a secret manager.
Repro repository: https://github.com/DominicRoyStang/kysely-ctl-async-bug
The text was updated successfully, but these errors were encountered: