Open
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