Skip to content

Commit 956711b

Browse files
filipesilvahansl
authored andcommitted
docs: document ES2015 support
1 parent 52792c7 commit 956711b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/documentation/build.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,16 @@ Remember to disable the service worker while developing to avoid stale code.
118118

119119
Note: service worker support is experimental and subject to change.
120120

121+
### ES2015 support
122+
123+
To build in ES2015 mode, edit `./tsconfig.json` to use `"target": "es2015"` (instead of `es5`).
124+
125+
This will cause application TypeScript and Uglify be output as ES2015, and third party libraries
126+
to be loaded through the `es2015` entry in `package.json` if available.
127+
128+
Be aware that JIT does not support ES2015 and so you should build/serve your app with `--aot`.
129+
See https://github.com/angular/angular-cli/issues/7797 for details.
130+
121131
## Options
122132
<details>
123133
<summary>aot</summary>

0 commit comments

Comments
 (0)