doc: clarify bare specifier subpath examples#63353
Closed
MukundaKatta wants to merge 1 commit into
Closed
Conversation
Collaborator
|
Review requested:
|
ljharb
reviewed
May 15, 2026
| refer to the main entry point of a package by the package name, or to a | ||
| package subpath by appending the subpath to the package name. Examples include | ||
| `'some-package/shuffle'` for a subpath exported by the package, and | ||
| `'some-package/shuffle.js'` for a file subpath in a package without an |
Member
There was a problem hiding this comment.
if it's being required, the extensionless path works too. only import forces extensions absent an exports field.
Contributor
|
It seems you are using a LLM to open PRs at a rate that's not humanely sustainable, without following up at all on the feedback received, please stop, this is not bringing any value and is wasting our time. If you keep opening more PRs, you'll get blocked. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes: #53022
Clarify the bare specifier terminology by replacing the ambiguous extension note with explicit examples for package main entries, exported package subpaths, and file subpaths in packages without an
exportsfield.Validation:
node tools/lint-md/lint-md.mjs doc/api/esm.mdgit diff --check origin/main...HEADpkg,pkg/shuffle.mjs,pkg-exports/shuffle, and failure forpkg/shufflewithoutexports.