If I understand correctly es module imports work differently from  JSM's 
Cu.import in which scope they operate in.

JSM's are singletons, while importing in es imports code into your JS context.

How would you want to differentiate between those two modes?

Other things in the es import is that is that it cannot be loaded 
conditionally, while Cu.import can (that may be solved in the future ES 
import() proposal)

zb.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to