Skip to content

Production build contains await operator (@ionic/core). Brokes down all android < 7.1 #15723

@glebmachine

Description

@glebmachine

Bug Report

Ionic Info

Ionic:

   ionic (Ionic CLI)          : 4.0.2
   Ionic Framework            : @ionic/angular 4.0.0-beta.1
   @angular-devkit/core       : 0.7.4
   @angular-devkit/schematics : 0.6.1
   @angular/cli               : 6.1.4
   @ionic/ng-toolkit          : 1.0.6
   @ionic/schematics-angular  : 1.0.5

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : android 7.1.1, ios 4.5.4

System:

   NodeJS : v10.9.0 (D:\Program Files\nodejs\node.exe)
   npm    : 6.2.0
   OS     : Windows 10

Environment:

   ANDROID_HOME : not set

Describe the Bug
@ionic/core/dist/colleciton/utils/framework contains await operator in production build!
damn

Bad part of it - this files added automatically by ionic/cli, not by developer.

Steps to Reproduce
Steps to reproduce the behavior:

  1. Use IonicModule in your angular app
  2. Add any stencil component (ion-scroll for example)
  3. Run on Android < 7.1.1

Related Code
none

Expected Behavior
All compiled source codes should be transpiled down to es5 ("target": "es5"` in tsconfig.json).
@angular/cli don't transpile js code.

Additional Context
none

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions