Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package is written in ESM, but is interpreted as CJS - publint issues #753

Open
ondrejsevcik opened this issue Jan 29, 2025 · 0 comments
Open

Comments

@ondrejsevcik
Copy link

The package @microsoft/clarity has a publint issues.

Specifically

  • The package does not specify the "type" field. NodeJS may attempt to detect the package type causing a small performance hit. Consider adding "type": "commonjs". (More info)
  • /index.js is written in ESM, but is interpreted as CJS. Consider using the .mjs extension, e.g. /index.mjs (More info)
  • /src/utils.js is written in ESM, but is interpreted as CJS. Consider using the .mjs extension, e.g. /src/utils.mjs (More info)

It's causing issues in one of my projects in Vite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant