Skip to content

ESM/CJS detection #2837

Description

@theoephraim

Describe the bug

Our package - https://npmx.dev/package/varlock - is showing as CJS supported and not ESM. It has "type": "module" and some default exports. There is also a "main": "dist/index.js" - I can't even remember why that main setting is there honestly. Probably some audit tool told me it was missing.

I'll likely swap this all over to .mjs files at some point as I'd prefer that explicitness - I think it's set up with .js filenames just because that's what tsup wants to spit out when it sees type=module.

But regardless this case seems like a bug.

Additional context

No response

Logs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backServer, DatastaleThis has become stale and may be closed soonstale-to-close

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions