Skip to content

fix(guides/imports): update Node.js built-ins section #11508

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ArmandPhilippot
Copy link
Member

Description (required)

Updates the Node.js builtins section in guides/imports to fix an incorrect example and to improve the wordings:

  • replace the example with the one provided by Fryuni in the issue
  • reword the intro to avoid blaming people that use Node.js built-ins
  • remove incorrect statement

I don't think I was in this (these? 😅 ) T&D or I don't recall... so maybe the idea was to not mention adapters at all? I'm referring to this comment: #7785 (comment)

Note: I'm not a native speaker but I believe built-in/builtin are the same... I used built-in because it seems to be the syntax used in other pages (I checked with Algolia). Should we update the heading as well?

Related issues & labels (optional)

@ArmandPhilippot ArmandPhilippot added the improve or update documentation Enhance / update existing documentation (e.g. add example, improve description, update for changes) label Apr 23, 2025
Copy link

netlify bot commented Apr 23, 2025

Deploy Preview for astro-docs-2 ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 0dad977
🔍 Latest deploy log https://app.netlify.com/sites/astro-docs-2/deploys/6808fe4a40693f0008303f4c
😎 Deploy Preview https://deploy-preview-11508--astro-docs-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@astrobot-houston
Copy link
Contributor

Lunaria Status Overview

🌕 This pull request will trigger status changes.

Learn more

By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.

You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

File Note
en/guides/imports.mdx Source changed, localizations will be marked as outdated.
Warnings reference
Icon Description
🔄️ The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

@sarah11918
Copy link
Member

Looks great! We'll review this tomorrow on Talking and Doc'ing... and close another issue! 💪

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improve or update documentation Enhance / update existing documentation (e.g. add example, improve description, update for changes)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Imports guide recommends a buggy use of import.meta.url
3 participants