Just some reminders, when working with ES6 modules:
- ES6 modules are automatically strict-mode code, even if you don’t write "use strict"; in them.
- When you run a module containing an
importdeclaration, the modules it imports are loaded first, then each module body is executed in a depth-first traversal of the dependency graph, avoiding cycles by skipping anything already executed.
More information on ES6 modules: