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

Refactor plugin fixtures to CJS #7270

Merged
merged 1 commit into from
Oct 22, 2023
Merged

Conversation

ybiquitous
Copy link
Member

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

Ref #5291

Is there anything in the PR that needs further explanation?

Currently, we support plugins only for CJS. So, this change explicitly appends the .cjs extension.

Currently, we support plugins only for CJS. So, this change explicitly appends the `.cjs` extension.
@changeset-bot

This comment was marked as resolved.

Copy link
Member

@mattxwang mattxwang left a comment

Choose a reason for hiding this comment

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

Overall, this LGTM.

One question (that can be addressed later), you said:

Currently, we support plugins only for CJS. So, this change explicitly appends the .cjs extension.

Should we document this somewhere (e.g. in Writing plugins or in the migration guide? I know this is "implicit" with the current state of Stylelint. but may be good to call out. I know it's not directly related to this PR (since it's only on test fixtures), but was just wondering.

@ybiquitous
Copy link
Member Author

I don't think adding that to the migration guide is needed, but adding that to the existing document may be good.

But I believe it's best to support ESM plugins, not only adding it to the doc.

@ybiquitous ybiquitous merged commit f2f306d into v16 Oct 22, 2023
14 checks passed
@ybiquitous ybiquitous deleted the refactor-plugin-fixtures-to-cjs branch October 22, 2023 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants