Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP - [autorest.typescript] Allow generating ESM imports (ts-morph option) #2926

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

maorleger
Copy link
Member

@maorleger maorleger commented Nov 23, 2024

Another option for adding extensions when the user opts-in to ESM imports. This alternative navigates all source files after codegen and applies the transformation generically

An alternative to #2925



if (isSourceCode /* && getAutorestOptions().moduleKind === "esm"*/) {
Copy link
Member Author

@maorleger maorleger Nov 23, 2024

Choose a reason for hiding this comment

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

We'd have to do the same thing for export from declarations but this is the basic idea

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