tsup-fix-cjs-exports
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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.

/tsup-fix-cjs-exports/

    Package Sidebar

    Install

    npm i tsup-fix-cjs-exports

    Weekly Downloads

    38

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    4.33 kB

    Total Files

    6

    Last publish

    Collaborators

    • remahmoud