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

Fix import errors for configs and plugins omitting /index.js #7578

Merged
merged 6 commits into from Mar 26, 2024
Merged

Conversation

ota-meshi
Copy link
Member

@ota-meshi ota-meshi commented Mar 26, 2024

Which issue, if any, is this issue related to?

Closes #7576
Closes #7577

Ref #7532

Is there anything in the PR that needs further explanation?

This PR fixes an issue where cannot resolve paths in configurations that expect index.js to resolve implicitly by Node.js.

Copy link

changeset-bot bot commented Mar 26, 2024

🦋 Changeset detected

Latest commit: 7817c16

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
stylelint Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ota-meshi ota-meshi changed the title Fix an issue where the expected config for /index.js could not be loaded Fix an issue where config for /index.js could not be loaded Mar 26, 2024
Copy link
Contributor

@Mouvedia Mouvedia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick fix.

.changeset/three-pumas-help.md Outdated Show resolved Hide resolved
@ybiquitous ybiquitous changed the title Fix an issue where config for /index.js could not be loaded Fix import errors for configs and plugins Mar 26, 2024
@ybiquitous ybiquitous changed the title Fix import errors for configs and plugins Fix import errors for configs and plugins omitting /index.js Mar 26, 2024
Copy link
Member

@ybiquitous ybiquitous left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ota-meshi Thank you for the quick fix! Overall LGTM, but I've left a few comments. Can you take a look?

lib/utils/resolveSilent.mjs Outdated Show resolved Hide resolved
.changeset/three-pumas-help.md Outdated Show resolved Hide resolved
@ybiquitous ybiquitous mentioned this pull request Mar 26, 2024
5 tasks
ota-meshi and others added 2 commits March 26, 2024 13:00
Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com>
@ota-meshi
Copy link
Member Author

Thank you for the suggestions! I've modified this PR.

Copy link
Member

@ybiquitous ybiquitous left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. LGTM 👍🏼

@ybiquitous ybiquitous merged commit 412ae2b into main Mar 26, 2024
14 checks passed
@ybiquitous ybiquitous deleted the fix7576 branch March 26, 2024 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants