-
-
Notifications
You must be signed in to change notification settings - Fork 32.9k
Open
Labels
cliIssues and PRs related to the Node.js command line interface.Issues and PRs related to the Node.js command line interface.esmIssues and PRs related to the ECMAScript Modules implementation.Issues and PRs related to the ECMAScript Modules implementation.moduleIssues and PRs related to the module subsystem.Issues and PRs related to the module subsystem.
Description
Building off of #49432, what should the flag be named for this proposed new mode? Yes, this is the bikeshed thread.
I think we have a few constraints:
- Whatever we choose needs to begin with
--experimental
(for now, until it goes stable). - It needs to either be a flag that takes a value, like our existing
--input-type=module
/--input-type=commonjs
; or have an obvious opposite, so that if/when this new mode becomes the new Node default there’s some way to opt back into the previous CommonJS-first behavior. - If it takes a value, those values should be
module
andcommonjs
for consistency with the existing--input-type
and thepackage.json
"type"
field. - We shouldn’t pick
--experimental-module
because there was a prior flag named--experimental-modules
which still exists as a noop, and it would be confusing to users if nothing happens when they try to use the flag but made a typo.
Please vote using emoji:
- 🚀
--experimental-type=module
/--experimental-type=commonjs
- 🎉
--experimental-default-type=module
/--experimental-default-type=commonjs
- ❤️
--experimental-implicit-type=module
/--experimental-implicit-type=commonjs
- 👀
--experimental-esm-by-default
/--no-experimental-esm-by-default
AugustinMauroyguybedford, ljharb, ruyadorno, targos, jcbhmr and 2 moretargostargos, mcollina, JakobJingleheimer, jcbhmr, danielbayley and 2 more
Metadata
Metadata
Assignees
Labels
cliIssues and PRs related to the Node.js command line interface.Issues and PRs related to the Node.js command line interface.esmIssues and PRs related to the ECMAScript Modules implementation.Issues and PRs related to the ECMAScript Modules implementation.moduleIssues and PRs related to the module subsystem.Issues and PRs related to the module subsystem.