Skip to content

Conversation

Codex-
Copy link
Owner

@Codex- Codex- commented Jun 6, 2023

No description provided.

@darkobits
Copy link

Thank you for addressing this! 🙌

lib/loader.ts Outdated
export function TypeScriptLoader(options?: RegisterOptions): Loader {
const tsNodeInstance = register({
...options,
compilerOptions: { module: "commonjs" },

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI as of version 8.2.0, Cosmiconfig no longer requires transpiled configuration to be CJS; they now accept pure ESM configuration files when using the asynchronous API.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah haven't had another chance yet to finish this off, this and the usage of require/import might need some changes during compilation to generate the appropriate sources

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@darkobits if you get a chance, this branch is now ready for testing :)

@Codex- Codex- marked this pull request as ready for review July 24, 2023 09:47
Repository owner deleted a comment from codecov-commenter Jul 24, 2023
@Codex-
Copy link
Owner Author

Codex- commented Jul 25, 2023

Closed in favour of #106

@Codex- Codex- closed this Jul 25, 2023
@Codex- Codex- deleted the support_esm branch August 1, 2023 21:48
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.

2 participants