GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — cli: rename --loader to --experimental-loader by reasonablytall · Pull Request #29752 · nodejs/node

Conversation

@reasonablytall

@reasonablytall reasonablytall commented Sep 28, 2019

Copy link
Copy Markdown
Contributor

Renames the --loader cli argument to --experimental-loader. This is
to clearly indicate the esm loader feature as experimental even after
esm is no longer experimental.

Also minorly alters the --experimental-loader docs to say that the
passed loader can be an esm module.

An alternative to this PR is to leave things unchanged and continue to use --experimental-modules to allow the use of --loader, even after ECMAScript modules are unflagged. This would reduce the number of different argument schemes a hypothetical script that wraps node would need to try, as discussed here: nodejs/modules#351 (comment)

Refs: nodejs/modules#351 (comment)

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bricss reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@nodejs-github-bot nodejs-github-bot added the c++ Issues and PRs that require attention from people who are familiar with C++. label Sep 28, 2019
@addaleax addaleax added the esm Issues and PRs related to the ECMAScript Modules implementation. label Sep 28, 2019
@addaleax

addaleax commented Sep 28, 2019

Copy link
Copy Markdown
Member

Is the intention to go back to using --loader once ESM is no longer experimental? If so – and maybe also if not – I’d recommend providing --loader as an (for-now-)undocumented alias via AddAlias().

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@guybedford

guybedford commented Sep 28, 2019

Copy link
Copy Markdown
Contributor

@addaleax the intention is to unflag modules while leaving loader as experimental for the time being, unflagging only after the development work to bring loaders to stable. Whether this could happen for 12 or only in 13 is another question too, and one we were hoping to get some feedback from on the releases group side.

reasonablytall and bricss reacted with thumbs up emoji
All reactions
  • 👍 2 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@addaleax

addaleax commented Sep 28, 2019

Copy link
Copy Markdown
Member

@guybedford Okay, then replace “once ESM is no longer experimental” with “once ESM loaders are no longer experimental” :)

bricss reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@reasonablytall

reasonablytall commented Sep 28, 2019

Copy link
Copy Markdown
Contributor Author

Using --experimental-loader prints an experimental warning message, so having --loader as an undocumented alias seems reasonable to me. I'll make the change.

The check is failing because I use cli as a subsystem. I'll change that to src since node_options.cc is the most affected.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@addaleax

addaleax commented Sep 28, 2019

Copy link
Copy Markdown
Member

The check is failing because I use cli as a subsystem. I'll change that to src since node_options.cc is the most affected.

I would ignore that, tbh. cli or esm are both better choices than src, imo.

reasonablytall reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@reasonablytall
cli: rename --loader to --experimental-loader
b5b6bb0
Renames the `--loader` cli argument to `--experimental-loader`.  This is
to clearly indicate the esm loader feature as experimental even after
esm is no longer experimental.

Also minorly alters the `--experimental-loader` docs to say that the
passed loader can be an esm module.

Refs: nodejs/modules#351 (comment)
@reasonablytall
reasonablytall force-pushed the experimental-loader-flag branch from 655cdf9 to b5b6bb0 Compare September 28, 2019 18:41
guybedford
guybedford approved these changes Sep 28, 2019
View reviewed changes
addaleax
addaleax approved these changes Sep 28, 2019
View reviewed changes
@addaleax addaleax added the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Sep 28, 2019
@nodejs-github-bot

nodejs-github-bot commented Sep 28, 2019

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/25752/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@addaleax addaleax added the cli Issues and PRs related to the Node.js command-line interface. label Sep 28, 2019
lpinca
lpinca approved these changes Sep 28, 2019
View reviewed changes
devnexen
devnexen approved these changes Sep 28, 2019
View reviewed changes
cjihrig
cjihrig reviewed Sep 30, 2019
View reviewed changes

@cjihrig cjihrig left a comment

Copy link
Copy Markdown
Contributor

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 think doc/node.1 needs to be updated as well.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

reasonablytall reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
jasnell
jasnell approved these changes Sep 30, 2019
View reviewed changes
@reasonablytall
cli: update doc/node.1 with --experimental-loader
3b979b1
@reasonablytall
reasonablytall requested a review from cjihrig September 30, 2019 16:08
cjihrig
cjihrig approved these changes Sep 30, 2019
View reviewed changes
@nodejs-github-bot

nodejs-github-bot commented Oct 1, 2019

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/25778/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Trott

Trott commented Oct 1, 2019

Copy link
Copy Markdown
Member

Landed in 15fb02a

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Trott Trott closed this Oct 1, 2019
Trott pushed a commit that referenced this pull request Oct 1, 2019
@reasonablytall @Trott
src: rename --loader to --experimental-loader
15fb02a
Renames the `--loader` cli argument to `--experimental-loader`.  This is
to clearly indicate the esm loader feature as experimental even after
esm is no longer experimental.

Also minorly alters the `--experimental-loader` docs to say that the
passed loader can be an esm module.

Refs: nodejs/modules#351 (comment)

PR-URL: #29752
Reviewed-By: Guy Bedford <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: David Carlier <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
targos pushed a commit that referenced this pull request Oct 1, 2019
@reasonablytall @targos
src: rename --loader to --experimental-loader
c3a1303
Renames the `--loader` cli argument to `--experimental-loader`.  This is
to clearly indicate the esm loader feature as experimental even after
esm is no longer experimental.

Also minorly alters the `--experimental-loader` docs to say that the
passed loader can be an esm module.

Refs: nodejs/modules#351 (comment)

PR-URL: #29752
Reviewed-By: Guy Bedford <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: David Carlier <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
@targos targos mentioned this pull request Oct 1, 2019
v12.11.1 release proposal #29796
Merged
@beevelop beevelop mentioned this pull request Oct 1, 2019
2019-10-01 Version 12.11.1 (Current) @targos beevelop/docker-nodejs#304
Closed
@reasonablytall reasonablytall mentioned this pull request Oct 23, 2019
Node.js Foundation Modules Team Meeting 2019-10-23 nodejs/modules#404
Closed
@guybedford guybedford mentioned this pull request Oct 30, 2019
esm: Unflag --experimental-modules #29866
Closed
14 tasks done
@snyk-bot snyk-bot mentioned this pull request Nov 5, 2022
[Snyk] Security upgrade gatsby from 2.18.18 to 3.0.0 137717unity/node#85
Open
@baby636 baby636 mentioned this pull request Nov 5, 2022
[Snyk] Security upgrade gatsby from 2.24.27 to 3.0.0 baby636/node#81
Open
@ron-a20 ron-a20 mentioned this pull request Nov 5, 2022
[Snyk] Security upgrade gatsby from 2.18.18 to 3.0.0 ron-a20/node#85
Open
@wedataintelligence wedataintelligence mentioned this pull request Nov 5, 2022
[Snyk] Security upgrade gatsby from 2.18.18 to 3.0.0 wedataintelligence/node#63
Open
@kissofire kissofire mentioned this pull request Nov 5, 2022
[Snyk] Security upgrade gatsby from 2.13.73 to 3.0.0 kissofire/node#87
Open
@aliceUnhinged613 aliceUnhinged613 mentioned this pull request Dec 25, 2022
[Snyk] Security upgrade gatsby from 2.18.18 to 3.0.0 aliceUnhinged613/node#84
Open
@wedataintelligence wedataintelligence mentioned this pull request Dec 25, 2022
[Snyk] Security upgrade gatsby from 2.18.18 to 3.0.0 wedataintelligence/node#67
Open
@kissofire kissofire mentioned this pull request Dec 25, 2022
[Snyk] Security upgrade gatsby from 2.13.73 to 3.0.0 kissofire/node#89
Open
@molllyn1 molllyn1 mentioned this pull request Dec 26, 2022
[Snyk] Security upgrade gatsby from 2.18.18 to 3.0.0 molllyn1/node#69
Open
@137717unity 137717unity mentioned this pull request Dec 26, 2022
[Snyk] Security upgrade gatsby from 2.18.18 to 3.0.0 137717unity/node#87
Open
@baby636 baby636 mentioned this pull request Dec 26, 2022
[Snyk] Security upgrade gatsby from 2.24.27 to 3.0.0 baby636/node#83
Open
@snyk-bot snyk-bot mentioned this pull request Dec 26, 2022
[Snyk] Security upgrade gatsby from 2.18.18 to 3.0.0 ron-a20/node#87
Open
@ron-a20 ron-a20 mentioned this pull request Oct 1, 2023
[Snyk] Fix for 1 vulnerabilities ron-a20/node#100
Open
@aliceUnhinged613 aliceUnhinged613 mentioned this pull request Oct 1, 2023
[Snyk] Fix for 1 vulnerabilities aliceUnhinged613/node#97
Open
@kissofire kissofire mentioned this pull request Oct 1, 2023
[Snyk] Fix for 1 vulnerabilities kissofire/node#104
Open
@wedataintelligence wedataintelligence mentioned this pull request Oct 2, 2023
[Snyk] Fix for 1 vulnerabilities wedataintelligence/node#83
Open
@molllyn1 molllyn1 mentioned this pull request Oct 2, 2023
[Snyk] Fix for 1 vulnerabilities molllyn1/node#84
Open
@137717unity 137717unity mentioned this pull request Oct 2, 2023
[Snyk] Fix for 1 vulnerabilities 137717unity/node#101
Open
@baby636 baby636 mentioned this pull request Oct 2, 2023
[Snyk] Fix for 1 vulnerabilities baby636/node#106
Open
@baby636 baby636 mentioned this pull request Jan 2, 2024
[Snyk] Security upgrade gatsby from 2.24.27 to 3.0.0 baby636/node#127
Open
@ron-a20 ron-a20 mentioned this pull request Jan 9, 2024
[Snyk] Security upgrade gatsby from 2.18.18 to 3.0.0 ron-a20/node#114
Open
@kissofire kissofire mentioned this pull request Jan 9, 2024
[Snyk] Security upgrade gatsby from 2.13.73 to 3.0.0 kissofire/node#117
Open
@aliceUnhinged613 aliceUnhinged613 mentioned this pull request Jan 9, 2024
[Snyk] Security upgrade gatsby from 2.18.18 to 3.0.0 aliceUnhinged613/node#116
Open
@molllyn1 molllyn1 mentioned this pull request Jan 9, 2024
[Snyk] Security upgrade gatsby from 2.18.18 to 3.0.0 molllyn1/node#100
Open
@137717unity 137717unity mentioned this pull request Jan 9, 2024
[Snyk] Security upgrade gatsby from 2.18.18 to 3.0.0 137717unity/node#116
Open
@wedataintelligence wedataintelligence mentioned this pull request Jan 9, 2024
[Snyk] Security upgrade gatsby from 2.18.18 to 3.0.0 wedataintelligence/node#99
Open
@baby636 baby636 mentioned this pull request Jan 9, 2024
[Snyk] Security upgrade gatsby from 2.24.27 to 3.0.0 baby636/node#130
Open
@baby636 baby636 mentioned this pull request Mar 19, 2024
[Snyk] Security upgrade gatsby from 2.24.27 to 3.0.0 baby636/node#135
Open
@baby636 baby636 mentioned this pull request Mar 27, 2024
[Snyk] Security upgrade gatsby from 2.24.27 to 3.0.0 baby636/node#137
Open
@GeoffreyBooth GeoffreyBooth mentioned this pull request Oct 31, 2026
module: remove async module customization hooks #67090
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@jasnell jasnell jasnell approved these changes
@guybedford guybedford guybedford approved these changes
@addaleax addaleax addaleax approved these changes
@lpinca lpinca lpinca approved these changes
@cjihrig cjihrig cjihrig approved these changes
+1 more reviewer
@devnexen devnexen devnexen approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. c++ Issues and PRs that require attention from people who are familiar with C++. cli Issues and PRs related to the Node.js command-line interface. esm Issues and PRs related to the ECMAScript Modules implementation.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

9 participants

@reasonablytall @addaleax @guybedford @nodejs-github-bot @Trott @jasnell @lpinca @cjihrig @devnexen
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.