30 December, 2015
0 Comments
1 category
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
import
declaration, 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:
- https://hacks.mozilla.org/2015/08/es6-in-depth-modules/
- https://developer.mozilla.org/nl/docs/Web/JavaScript/Reference/Statements/import
Tags: Javascript
Category: Uncategorized