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

ESM Support #127

Open
goastler opened this issue Sep 14, 2023 · 0 comments
Open

ESM Support #127

goastler opened this issue Sep 14, 2023 · 0 comments

Comments

@goastler
Copy link

Hi, due to changes in module resolution using ESM with typescript, the .js extension is now required for relative imports and assert { type: "json" } for json imports.

Could you add a parameter of some description to enable these extensions/assertions for the output of typechain? Would be mighty handy in our case where our codebase is in ESM typescript.

We're currently doing a regex substitution to add the extensions and assertions, but it's super hacky!

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

No branches or pull requests

1 participant