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

Commit d302bce

Browse files
committed
Update README.md
1 parent c96ed92 commit d302bce

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Dynamically loads ES6 modules in browsers and [NodeJS](#nodejs-use) with support for loading existing and custom module formats through loader hooks.
44

5-
This project implements dynamic module loading through `System` exactly to the previous ES6-specified loader API at [2014-08-24 ES6 Specification Draft Rev 27, Section 15](http://wiki.ecmascript.org/doku.php?id=harmony:specification_drafts#august_24_2014_draft_rev_27) and will continue to track this API as it is re-drafted as a browser specification (currently most likely to be at https://github.com/whatwg/loader).
5+
This project implements dynamic module loading through `System` exactly to the previous ES6-specified loader API at [2014-08-24 ES6 Specification Draft Rev 27, Section 15](http://wiki.ecmascript.org/doku.php?id=harmony:specification_drafts#august_24_2014_draft_rev_27) and is being converted to track the newly redrafted specification at https://github.com/whatwg/loader (work in progress at https://github.com/ModuleLoader/es6-module-loader/pull/317).
66

77
* Provides an asynchronous loader (`System.import`) to [dynamically load ES6 modules](#getting-started).
88
* Supports both [Traceur](https://github.com/google/traceur-compiler) and [Babel](http://babeljs.io/) for compiling ES6 modules and syntax into ES5 in the browser with source map support.
@@ -35,7 +35,7 @@ If using ES6 syntax (optional), include `traceur.js` or `babel.js` in the page f
3535
<script src="es6-module-loader.js"></script>
3636
```
3737

38-
To use Babel, set the transpiler to `babel` with the loader configuration:
38+
To use Babel, load Babel's `browser.js` instead and set the transpiler to `babel` with the loader configuration:
3939

4040
```html
4141
<script>
@@ -100,9 +100,11 @@ See the [demo folder](https://github.com/ModuleLoader/es6-module-loader/blob/mas
100100
#### NodeJS Use
101101

102102
```
103-
npm install es6-module-loader
103+
npm install es6-module-loader babel traceur
104104
```
105105

106+
It is important that Babel or Traceur is installed into the path in order to be found, since these are no longer project dependencies.
107+
106108
For use in NodeJS, the `Loader` and `System` globals are provided as exports:
107109

108110
index.js:

0 commit comments

Comments
 (0)