Ionic-app-scripts: feat request: use uglify-es

Created on 11 May 2017  路  4Comments  路  Source: ionic-team/ionic-app-scripts

Short description of the problem:

ionic-app-scripts currently use uglify-js to minify Ionic apps. Uglify-js supports only es5 so the typescript compiler must target es5 which leads to more generated code. Using uglify-es would allow to target es6 in tsconfig, so typescript just could leave es6 code untouched instead of compiling it down to es5. This would lead to smaller bundles which would lead to faster startup time.

What behavior are you expecting?

Use uglify-es to minify ionic apps.

Steps to reproduce: n/a

Which @ionic/app-scripts version are you using? 1.3.7

Other information: n/a

enhancement

All 4 comments

It would gives performances improvements too, when using generators or async/await for example.

+1

It appears this is already the case in master.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

loicfavory picture loicfavory  路  4Comments

jgw96 picture jgw96  路  3Comments

barbsicle picture barbsicle  路  3Comments

MarkErik picture MarkErik  路  3Comments

bastibense picture bastibense  路  3Comments