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

Commit c6aaa70

Browse files
committed
Update README.md
1 parent cc53028 commit c6aaa70

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,22 @@ We can then load the module with the dynamic loader:
4949
<script>
5050
System.import('mymodule').then(function(m) {
5151
new m.q();
52-
}).catch(console.error.bind(console));
52+
});
5353
</script>
5454
```
5555

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

58-
_Because the loader is promise-based we need to add a catch handler in order to detect loading errors._
59-
6058
[Read the wiki on overview of ES6 modules and syntax](https://github.com/ModuleLoader/es6-module-loader/wiki/A-Brief-ES6-Modules-Overview).
6159

60+
### Custom Compilation Options
61+
62+
Custom [Traceur compilation options](https://github.com/google/traceur-compiler/blob/master/src/Options.js#L25) can be set through `System.traceurOptions`, eg:
63+
64+
```javascript
65+
System.traceurOptions.annotations = true;
66+
```
67+
6268
### Module Tag
6369

6470
A simple analog to the module tag is provided with:

0 commit comments

Comments
 (0)