Correct me if I have any of this wrong, but modules don't need to be
callable for the jQuery use case:
// jquery.js
export function $(...) { ... }
// program.js
import $ from "path/to/jquery.js";
$("#elem").whatever
We don't need "node style" modules-as-classes either:
// MyClass.js
export function MyClass() { ... }
// program.js
import MyClass from "MyClass.js";
new MyClass;
or more succinctly:
// program.js
import * from "MyClass.js";
new MyClass;
kevin
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss