I wonder how people are going to feel about .cjs 
-
-
package.json#type is intended to be reusable for a variety of things, in particular eventually configuring your own extension <-> content-type mapping has been discussed.
-
Is it a goal to allow overriding the meaning of .cjs and .mjs too? Because if not, the extension check could still be hoisted.
- 4 more replies
New conversation -
-
-
The extension can be the first check definitely. Spec isn't written optimized for performance, but it could make sense to refactor that way around.
-
That’d be great. Zero config should be the fast path!
End of conversation
New conversation -
-
-
Agreed. The extension check needs to come first, otherwise we're forever doomed to use a flag for entrypoint modules without package.json.
-
@guybedford Kicked off a PR here: https://github.com/nodejs/ecmascript-modules/pull/33 … Let’s move the discussion there.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.