ts2esm
ts2esm copied to clipboard
Transforms TypeScript imports and exports into ESM-compatible declarations.
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....