Skip to content

Conversation

@TrevorBurnham
Copy link

I recently created codemod-add-import-extensions, a codemod for adding file extensions to imports in TypeScript code.

For context, the main motivation for this was to allow TypeScript code to be run directly with its --experimental-strip-types feature. Path rewriting in TypeScript 5.7 allows imports with a .ts extension to be compiled correctly, so imports with those extensions are now compatible with compiled code as well, and should improve build times because the import can be resolved more quickly.

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