import script --> .esm

Matthew Robb matthewwrobb at
Wed Sep 10 09:23:28 PDT 2014

On Wed, Sep 10, 2014 at 12:20 PM, Anne van Kesteren <annevk at>

> (I think text/javascript is just fine btw. text/* works great for HTML
> and CSS too. In any event, for the purposes of the browser JavaScript
> does not really have a MIME type. We parse anything we get...)
> ​The problem is that there are now two distinctly different types of
javascript file, some should be parsed as script and some should be parsed
as module. Assuming everything is script that is not explicitly module
would work but I don't see how you can accurately guess without some sort
of hint that you need to parse as module.​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list