ts2esm icon indicating copy to clipboard operation
ts2esm copied to clipboard

Transforms TypeScript imports and exports into ESM-compatible declarations.

Results 13 ts2esm issues
Sort by recently updated
recently updated
newest added

This PR fixes the issue where `module.exports = { ... }` object literals were being stripped entirely instead of being transformed to proper ESM exports. ## Problem Previously, when transforming...

This PR fixes an issue where absolute imports (imports that don't start with `.` or `..`) were not being converted to include `.js` extensions, while relative imports worked correctly. ##...

This PR implements smart handling of package exports and subpath imports to distinguish between legacy packages that need `.js` extensions and modern packages with `exports` field that should remain unchanged....