import script --> .esm

Axel Rauschmayer axel at
Wed Sep 10 09:39:27 PDT 2014

> Modules and scripts can not always be identified by inspection.  Consider:
> foo.js -------------------------------
> const answer = 42;
> ---------------------------------------
> The semantics of this are quite different depending upon whether foo.js is evaluated as a script or loaded as a module.

Given that module files and script files have different semantics, I would definitely want different file endings for them – for both humans and machines. 1JS doesn’t apply here.


Dr. Axel Rauschmayer
axel at

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list