axtgr

axtgr/ts-transform-default-export

export default foo → export = foo → module.exports = foo

TypeScript
4
0
ISC License

ts-transform-default-export is a TypeScript transformer that converts default exports to CommonJS-compatible exports, enabling packages to work with both CommonJS and ES modules. It transforms exports like `export default foo` into `export = foo`, which becomes `module.exports = foo` when transpiled, allowing consumption via `require('foo')`. This tool is ideal for library authors who need to maintain compatibility across different module systems.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies

Support the repos that depend on this repository

Top contributors

axtgr's profile
axtgr
38 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet