angular / zone.js

Implements Zones for JavaScript
https://github.com/angular/angular/tree/master/packages/zone.js/
MIT License
3.25k stars 407 forks source link

build: build zone-evergreen.js in es2015, add terser minify support #1191

Closed JiaLiPassion closed 5 years ago

JiaLiPassion commented 5 years ago
  1. build zone-evergreen.js in es2015 format.
  2. use terser to minify zone-evergreen.js. Here is the terser options I used.
    compress: {
          module: true
        },
        ecma: 5, // specify one of: 5, 6, 7 or 8
        keep_classnames: false,
        keep_fnames: false,
        ie8: false,
        module: false,
        nameCache: null, // or specify a name cache object
        safari10: false,
        toplevel: false,
        warnings: false,
JiaLiPassion commented 5 years ago

@IgorMinar, @filipesilva, I have updated the terser and CI, and CI is green now. please review, thanks!