-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
doc: add doc for --loader option #22104
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
Changes from 5 commits
a9e150b
1b930e2
1553d78
d90e3ea
188fb32
6e6192b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2621,6 +2621,9 @@ static void PrintHelp() { | |
" --inspect[=[host:]port] activate inspector on host:port\n" | ||
" (default: 127.0.0.1:9229)\n" | ||
#endif // HAVE_INSPECTOR | ||
" --loader=file (with --experimental-modules) use the \n" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If I understand @devsnek's comment correctly, this line causes the parallel/test-cli-node-print-help.js to fail when There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. However, if this flag can be used only with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i'm opening a pr to fix the flags. this line should stay how it is. |
||
" specified file as a custom loader\n" | ||
" for ECMAScript Modules \n" | ||
" --napi-modules load N-API modules (no-op - option\n" | ||
" kept for compatibility)\n" | ||
" --no-deprecation silence deprecation warnings\n" | ||
|
Uh oh!
There was an error while loading. Please reload this page.
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.
Nit: reference list is sorted in ASCII order, so this item needs to be placed before the
[libuv threadpool documentation]
.Uh oh!
There was an error while loading. Please reload this page.
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.
Sure, will fix that. Any way we could add this as a rule to
make lint
?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.
It would be helpful to have it as a rule as we are already a bit messy in some docs in these sections,
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.
Would updating remark-preset-lint-node to also include remark-lint-alphabetize-lists work? I expect this would cause build failures, if
remark-preset-lint-node
was updated before fixes for that landed in master. How would the transition be handled?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 am not sure that
remark-lint-alphabetize-lists
can fix this case as reference lists are not common markdown lists. Maybe @rubys can tell if there is a ready easy solution for 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.
Remark calls those lines definitions. Looking at the source to remark-lint-alphabetize-lists
, if
list
where changed todefinition
on line 18, the code would do what you want.