Skip to content

Conversation

@BrigittaK307
Copy link
Contributor

@BrigittaK307 BrigittaK307 commented Sep 17, 2025

The generateESM flag, used in both generator and openapi generator packages controls if the generated client code follows the ECMACScript Module (ESM) syntax or the default, CommonJS one.
when generateESM: true is set, the generator produces code which folllows the ESM syntax.

Co-authored-by: Deeksha Sinha <88374536+deekshas8@users.noreply.github.com>
Copy link
Contributor

@deekshas8 deekshas8 left a comment

Choose a reason for hiding this comment

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

I found two issues during compilation, having to do with incorrect tsconfig and missing type in package.json.

Copy link
Contributor

@deekshas8 deekshas8 left a comment

Choose a reason for hiding this comment

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

I think this is in a good state now. Great Work @BrigittaK307 🚀

I found a bug in the OpenApi generator, the compilation still doesn't work there because the package.json doesn't have type: module when generateESM is set to true. Please create a ticket for that and fix that in a separate PR (with a fix changelog).

@BrigittaK307 BrigittaK307 merged commit c73c7fa into main Nov 20, 2025
16 checks passed
@BrigittaK307 BrigittaK307 deleted the I753325-esm-support-oData branch November 20, 2025 14:27
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.

4 participants