Skip to content

remahmoud/tsup-fix-cjs-exports

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tsup-fix-cjs-exports

This is a tsup plugin that convert exports.default to modules.exports for CommonJS modules.

Usage

npm i tsup-fix-cjs-exports -D
// tsup.config.js

import fixCjsExports from 'tsup-fix-cjs-exports'

export default defineConfig({
    // ... other tsup config
    plugins: [fixCjsExports()],
})

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue and describe your request.

Author

tsup-fix-cjs-exports © Mahmoud Ibrahiam, Released under the MIT License.