You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 13, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+5-2
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,7 @@ This project implements dynamic module loading through `System` exactly to the p
13
13
* Can be used as a [tracing tool](docs/tracing-api.md) for static analysis of modules.
14
14
* Supports IE8+, with IE9+ support for ES6 development without pre-compilation.
15
15
* The minified production loader is under 5KB minified and gzipped, making it suitable for production use, provided that modules are [built into ES5 making them independent of Traceur](docs/production-workflows.md).
16
+
* Supports declaring modules with `<script type="module">`, the precursor of the proposed [`<module>` tag](https://github.com/dherman/module-tag/).
16
17
17
18
For an overview of build workflows, [see the production guide](docs/production-workflows.md).
18
19
@@ -74,6 +75,10 @@ and load the module dynamically in the browser
74
75
75
76
The dynamic loader returns a `Module` object, which contains getters for the named exports (in this case, `q`).
76
77
78
+
See the [demo folder](https://github.com/ModuleLoader/es6-module-loader/blob/master/demo/index.html) in this repo for a working example demonstrating module loading in the browser both with `System.import` and with the module-type script tag.
79
+
80
+
Although `System.import()` does not support the import of multiple modules defined in an array, because `System.import()` returns a Promise, this can be achieved by creating an array of `System.import`s and using `Promise.all()`.
81
+
77
82
#### Setting transpilation options
78
83
79
84
If using Traceur, these can be set with:
@@ -109,8 +114,6 @@ As well as defining `window.System`, this polyfill provides support for the `<sc
109
114
110
115
Because it is only possible to load ES6 modules with this tag, it is not suitable for production use in this way.
111
116
112
-
See the [demo folder](https://github.com/ModuleLoader/es6-module-loader/blob/master/demo/index.html) in this repo for a working example demonstrating module loading in the browser both with `System.import` and with the module-type script tag.
0 commit comments