https://github.com/teppeis/ts-esm-cjs-dual
Sample project for TypeScript Native ESM / CJS Dual package
https://github.com/teppeis/ts-esm-cjs-dual
esm nodejs typescript
Last synced: 2 months ago
JSON representation
Sample project for TypeScript Native ESM / CJS Dual package
- Host: GitHub
- URL: https://github.com/teppeis/ts-esm-cjs-dual
- Owner: teppeis
- Created: 2021-10-17T12:36:57.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-10-17T13:22:42.000Z (over 3 years ago)
- Last Synced: 2025-03-05T18:58:53.935Z (3 months ago)
- Topics: esm, nodejs, typescript
- Language: TypeScript
- Homepage:
- Size: 6.84 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sample project for TypeScript Native ESM / CJS Dual package
This package can be imported from both Native ESM (`module:node12`) and CJS (`module:commonjs`) in TypeScript all versions.
It uses TypeScript 4.5 ESM features like `module:node12`, handling `.mts` and `.d.mts` and supporting exports mapping.
> [Announcing TypeScript 4.5 Beta - TypeScript](https://devblogs.microsoft.com/typescript/announcing-typescript-4-5-beta/)
## License
MIT