Skip to content

Conversation

@nitin-is-me
Copy link
Contributor

@nitin-is-me nitin-is-me commented Feb 11, 2026

Description

This PR standardizes the code examples in en/learn section of the documentation to add the missing tabs for switching between ESM/CJS. I'd like to fix the other language docs as well whenever I get free time. Please do tell me if I missed any page in en/learn section.

Validation

Manually verified that cjs and mjs code blocks are strictly adjacent in the markdown, which is the requirement for rehype-shiki to render the tabs correctly. Here is the visual change (visible in all changes pages):

Original site:

image

Deployed preview site:

image

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. (N/A)

@nitin-is-me nitin-is-me requested a review from a team as a code owner February 11, 2026 05:08
@vercel
Copy link

vercel bot commented Feb 11, 2026

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

Project Deployment Actions Updated (UTC)
nodejs-org Ready Ready Preview Feb 11, 2026 5:10am

Request Review

@github-actions
Copy link
Contributor

👋 Codeowner Review Request

The following codeowners have been identified for the changed files:

Team reviewers: @nodejs/nodejs-website @nodejs/diagnostics @nodejs/fs

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

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.

1 participant