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

[0.7.x] Ensure 'node' has a fallback type when working with static import linters #227

Merged
merged 1 commit into from
May 18, 2023
Merged

[0.7.x] Ensure 'node' has a fallback type when working with static import linters #227

merged 1 commit into from
May 18, 2023

Conversation

timacdonald
Copy link
Member

Fixes #224

When using linters that are parsing and analysing imports from package.json files within the node_modules directory, they may fail because the ./inertia-helpers do not, and never have, ship a CJS version.

Because the tooling is using CJS, it cannot find an appropriate import to use and Node itself fails.

This PR adds a fallback entrypoint for node. The entry point, as per the docs, may be CJS or MJS, thus we may just point to out existing MJS built assets.

You can read more about entry points in the node docs: https://nodejs.org/docs/latest-v16.x/api/packages.html#package-entry-points

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

Successfully merging this pull request may close these issues.

Package subpath './inertia-helpers' is not defined by "exports"
2 participants