Skip to content

docs(v1): fix node preset import in README example#551

Open
SinhSinhAn wants to merge 1 commit into
unjs:v1from
SinhSinhAn:fix/node-preset-readme-import
Open

docs(v1): fix node preset import in README example#551
SinhSinhAn wants to merge 1 commit into
unjs:v1from
SinhSinhAn:fix/node-preset-readme-import

Conversation

@SinhSinhAn

Copy link
Copy Markdown

Closes #509.

The example under the ### node preset section in the v1 README imports nodeless but the line right below calls env(node, {}). The import is the typo — the section is documenting the node preset, so the import should be { env, node }. The other preset sections (nodeless, deno, etc.) all import the matching name.

One-character README change, no source code touched, no behaviour change. Targeting v1 since that's the branch the npm-published README comes from.


AI disclosure: I used Claude to locate the line in the v1 README and to draft this PR description. The fix itself is a single-word edit that matches the reporter's suggestion in #509.

The example under the `node` preset section imports `nodeless` but
the code immediately below calls `env(node, {})`, which is the
correct preset for that section. Fixed the import to match.

Closes unjs#509.
@coderabbitai

coderabbitai Bot commented May 27, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 1a757557-9a5b-4eb7-85ca-6ea1e8393af0

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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