Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit c424327

Browse files
committed
Updates to readme
1 parent c0f66ad commit c424327

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ This project implements dynamic module loading through `System` exactly to the p
1313
* Can be used as a [tracing tool](docs/tracing-api.md) for static analysis of modules.
1414
* Supports IE8+, with IE9+ support for ES6 development without pre-compilation.
1515
* 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/).
1617

1718
For an overview of build workflows, [see the production guide](docs/production-workflows.md).
1819

@@ -74,6 +75,10 @@ and load the module dynamically in the browser
7475

7576
The dynamic loader returns a `Module` object, which contains getters for the named exports (in this case, `q`).
7677

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+
7782
#### Setting transpilation options
7883

7984
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
109114

110115
Because it is only possible to load ES6 modules with this tag, it is not suitable for production use in this way.
111116

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.
113-
114117
#### NodeJS Use
115118

116119
```

0 commit comments

Comments
 (0)