Skip to content

Commit a2c51b7

Browse files
committed
docs: mention Terser instead of UglifyJS
Now that angular#11996 landed, the CLi uses Terser instead of UglifyJS.
1 parent f52f043 commit a2c51b7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/documentation/build.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ ng build --base-href /myUrl/
3535
### Bundling & Tree-Shaking
3636

3737
All builds make use of bundling and limited tree-shaking, while `--prod` builds also run limited
38-
dead code elimination via UglifyJS.
38+
dead code elimination via Terser.
3939

4040
### `--build-optimizer` and `--vendor-chunk`
4141

4242
When using Build Optimizer the vendor chunk will be disabled by default.
4343
You can override this with `--vendor-chunk=true`.
4444

4545
Total bundle sizes with Build Optimizer are smaller if there is no separate vendor chunk because
46-
having vendor code in the same chunk as app code makes it possible for Uglify to remove more unused
46+
having vendor code in the same chunk as app code makes it possible for Terser to remove more unused
4747
code.
4848

4949
### CSS resources
@@ -57,7 +57,7 @@ You'll see these resources be outputted and fingerprinted at the root of `dist/`
5757

5858
To build in ES2015 mode, edit `./tsconfig.json` to use `"target": "es2015"` (instead of `es5`).
5959

60-
This will cause application TypeScript and Uglify be output as ES2015, and third party libraries
60+
This will cause application TypeScript and Terser be output as ES2015, and third party libraries
6161
to be loaded through the `es2015` entry in `package.json` if available.
6262

6363
Be aware that JIT does not support ES2015 and so you should build/serve your app with `--aot`.

packages/angular_devkit/build_optimizer/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Transformations applied depend on file content:
1111
- [Import tslib](#import-tslib): applied when TypeScript helpers are found.
1212

1313
Some of these optimizations add `/*@__PURE__*/` comments.
14-
These are used by [UglifyJS](https://github.com/mishoo/UglifyJS2) to identify pure functions that can potentially be dropped.
14+
These are used by [Terser](https://github.com/terser-js/terser) to identify pure functions that can potentially be dropped.
1515

1616

1717
### Class fold

0 commit comments

Comments
 (0)