Skip to content

teppeis/ts-esm-cjs-dual

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

License

MIT

About

Sample project for TypeScript Native ESM / CJS Dual package

Topics

Resources

Stars

Watchers

Forks