Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.
This repository was archived by the owner on May 1, 2020. It is now read-only.

Uglifyjs Fails with ES6 when bulding for production #1027

@neoassyrian

Description

@neoassyrian

Short description of the problem:

Error when running ionic cordova build android --prod

Error: Unexpected token: name (xxxxxxx) in www\build\main.js at line 19288, col 4, pos 662013

What behavior are you expecting?

Build success

Steps to reproduce:

  1. Update tsconfig and set "target": "es6"
  2. run ionic cordova build android --prod
  3. Error Message after UglifyJS started

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

Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)

global packages:

@ionic/cli-utils : 1.3.0
Cordova CLI      : 6.5.0
Ionic CLI        : 3.3.0

local packages:

@ionic/app-scripts              : 1.3.7
@ionic/cli-plugin-cordova       : 1.3.0
@ionic/cli-plugin-ionic-angular : 1.3.0
Cordova Platforms               : android 6.1.2 ios 4.4.0
Ionic Framework                 : ionic-angular 3.3.0

typescript 2.3.3

System:

Node       : v6.9.2
OS         : Windows 10
Xcode      : not installed
ios-deploy : not installed
ios-sim    : not installed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions