File tree 2 files changed +4
-4
lines changed
packages/angular_devkit/build_optimizer
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -35,15 +35,15 @@ ng build --base-href /myUrl/
35
35
### Bundling & Tree-Shaking
36
36
37
37
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 .
39
39
40
40
### ` --build-optimizer ` and ` --vendor-chunk `
41
41
42
42
When using Build Optimizer the vendor chunk will be disabled by default.
43
43
You can override this with ` --vendor-chunk=true ` .
44
44
45
45
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
47
47
code.
48
48
49
49
### CSS resources
@@ -57,7 +57,7 @@ You'll see these resources be outputted and fingerprinted at the root of `dist/`
57
57
58
58
To build in ES2015 mode, edit ` ./tsconfig.json ` to use ` "target": "es2015" ` (instead of ` es5 ` ).
59
59
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
61
61
to be loaded through the ` es2015 ` entry in ` package.json ` if available.
62
62
63
63
Be aware that JIT does not support ES2015 and so you should build/serve your app with ` --aot ` .
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ Transformations applied depend on file content:
11
11
- [ Import tslib] ( #import-tslib ) : applied when TypeScript helpers are found.
12
12
13
13
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.
15
15
16
16
17
17
### Class fold
You can’t perform that action at this time.
0 commit comments