-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
Fix typo in --specifier-resolution=[node] #39249
Conversation
doc/api/esm.md
Outdated
@@ -1303,7 +1303,7 @@ the CommonJS loader. One of the behavior differences is automatic resolution | |||
of file extensions and the ability to import directories that have an index | |||
file. | |||
|
|||
The `--experimental-specifier-resolution=[mode]` flag can be used to customize | |||
The `--experimental-specifier-resolution=[node]` flag can be used to customize |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't believe this change is correct. "mode" here is referring to the parameter name, whereas "node" is one possible value for the "mode" parameter. The "mode" could also have a value of "explicit".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR like mscdex said this is not a typo :)
Changes to the docs making that clearer are welcome though I'm personally not sure how to make it clearer.
ohh got it, sorry about that :) mmm I guess maybe something different then mode? maybe |
from the very fact that this PR exists shows that the word /cc @nodejs/loaders |
I think PR update welcome |
Thanks for the comments! |
doc/api/esm.md
Outdated
@@ -1303,7 +1303,7 @@ the CommonJS loader. One of the behavior differences is automatic resolution | |||
of file extensions and the ability to import directories that have an index | |||
file. | |||
|
|||
The `--experimental-specifier-resolution=[mode]` flag can be used to customize | |||
The `--experimental-specifier-resolution=[resolution-mode]` flag can be used to customize |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line now exceeds 80 characters, while the rest of the paragraph is wrapped at 80 chars. Not sure whether we usually fix this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it fails the lint doc check, which blocks merging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tniessen in my anecdotal experience we usually fix this for first time contributors if they are unable to do so themselves.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix looks good - please drop it to two lines in order to meet the 80 character limit :)
The flag was removed in #44859. |
Sorry for dropping the ball on getting this through the finish line back then @Urigo ! Thank you for your contribution |
No description provided.