Skip to content

Remove module.exports in esm bundle #116

@egoist

Description

@egoist

Issue Type

  • Bug Report
  • Feature Request
  • Other

Description

cac/src/index.ts

Lines 13 to 14 in 5060bd9

// @remove-for-deno
module.exports = cac

This should be removed in esm bundle for Node.js too.

Normally it won't cause issues, unless you're trying to bundle your CLI into a single js file.

Possible Solutions

Using a rollup plugin to remove it, could be added here: https://github.com/cacjs/cac/blob/master/rollup.config.js

Info

  • CAC version: 6.7.3
  • Reproduction link:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions