treated as a module if ...

Domenic Denicola d at domenic.me
Sun Jul 5 15:46:37 UTC 2015


To be explicit: there is no way to look at a string of JavaScript text and tell whether it should be treated as a module or a script. In many instances the same string can be treated as both. The decision is made by the execution environment.



More information about the es-discuss mailing list