Skip to content

Module is not ESM compliant #39

@WoodyWoodsta

Description

@WoodyWoodsta

Hey 👋

Some projects struggle to import components from this module because there are the following issues with it:

  • It builds ESM into dist/es, but the file extensions of those files are .js. The package.json does not include "type": "module", so the files are interpreted as CJS. Some bundlers may not have an issue, others that follow the spec more closely (e.g. Vite) will fail to resolve.
  • Local/relative imports in the dist output do not include file extensions which means that Node cannot resolve them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions