Skip to content

jolyndenning/typescript-esm-cjs-interop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

typescript-esm-cjs-interop

This repo demonstrates a problem with the Typescript esModuleInterop. If typescript is given a CJS module whose exports include an enumerable default property, an error is thrown.

Demonstration of issue

node lib/index.js

Note the "Cannot redefine property: default" error that is thrown

Compiling the code

yarn compile

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published