An open API service indexing awesome lists of open source software.

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

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