Skip to content

docs: clarify file extension for module type#8697

Open
danielrhodeswarp wants to merge 1 commit intonodejs:mainfrom
danielrhodeswarp:clarify-extension-for-module-type
Open

docs: clarify file extension for module type#8697
danielrhodeswarp wants to merge 1 commit intonodejs:mainfrom
danielrhodeswarp:clarify-extension-for-module-type

Conversation

@danielrhodeswarp
Copy link

Description

I have clarified this point which was, at least for me, a bit of a "huh?" moment:
"If you use mjs version of the code,..." when the code snippets prior are simply labelled CJS and ESM.

So I suggest a change to:
"If you use the ESM version of the code,..."

Validation

Check, in the browser, the first page of "Introduction to Node.js". The change is just after the first code snippet.

Related Issues

Check List

  • I have read the Contributing Guidelines and made commit messages that follow the guideline.
  • I have run pnpm format to ensure the code follows the style guide.
  • I have run pnpm test to check if all tests are passing.
  • I have run pnpm build to check if the website builds without errors.
  • I've covered new added functionality with unit tests if necessary.

@danielrhodeswarp danielrhodeswarp requested a review from a team as a code owner March 5, 2026 14:49
@vercel
Copy link

vercel bot commented Mar 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
nodejs-org Ready Ready Preview Mar 5, 2026 2:50pm

Request Review

@github-actions
Copy link
Contributor

github-actions bot commented Mar 5, 2026

👋 Codeowner Review Request

The following codeowners have been identified for the changed files:

Team reviewers: @nodejs/nodejs-website

Please review the changes when you have a chance. Thank you! 🙏

@aymen94
Copy link
Member

aymen94 commented Mar 5, 2026

LGTM

@codecov
Copy link

codecov bot commented Mar 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.10%. Comparing base (252f977) to head (56ff779).
⚠️ Report is 3 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8697      +/-   ##
==========================================
+ Coverage   75.05%   75.10%   +0.04%     
==========================================
  Files         104      104              
  Lines        9161     9161              
  Branches      316      315       -1     
==========================================
+ Hits         6876     6880       +4     
+ Misses       2283     2279       -4     
  Partials        2        2              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

5 participants