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

[Docs] Add node ESM behaviour in import/extensions #2748

Merged
merged 1 commit into from Apr 8, 2023
Merged

[Docs] Add node ESM behaviour in import/extensions #2748

merged 1 commit into from Apr 8, 2023

Conversation

xM8WVqaG
Copy link
Contributor

This behaviour largely didn't change despite the functionality becoming more widely adopted. Even though the document assumes CJS, It's probably worth including at least a footnote about the resolver behaving differently for ESM.

See: #2043

This behavior largely didn't change despite the functionality becoming more widely adopted. Even though the document assumes CJS, It's probably worth including at least a footnote about the resolver behaving differently for ESM.

See: #2043
docs/rules/extensions.md Outdated Show resolved Hide resolved
docs/rules/extensions.md Outdated Show resolved Hide resolved
@ljharb
Copy link
Member

ljharb commented Mar 25, 2023

(Either way, I'd suggest not using native ESM in node, for many reasons, but this isn't the venue to debate that ofc)

Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

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

what do you think about this?

docs/rules/extensions.md Outdated Show resolved Hide resolved
docs/rules/extensions.md Outdated Show resolved Hide resolved
docs/rules/extensions.md Outdated Show resolved Hide resolved
@ljharb ljharb added the docs label Mar 26, 2023
@xM8WVqaG
Copy link
Contributor Author

Thanks for your suggestions! This conveys the message I was originally looking for and captures some of the important bits from the conversations in this PR.

docs/rules/extensions.md Outdated Show resolved Hide resolved
@ljharb ljharb merged commit d2b10ae into import-js:main Apr 8, 2023
151 of 152 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

2 participants