tsup-fix-cjs-exports
v1.0.3
Published
tsup plugin to fix cjs exports
Downloads
45
Maintainers
Readme
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.