Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

ngo is removing console logs #52

Closed

Description

@StephenFluin

Using:

@angular/cli: 1.3.0-rc.1
node: 8.1.3
os: linux x64
@angular/animations: 4.3.1
@angular/cli: 1.3.0-rc.1
@angular/common: 4.3.1
@angular/compiler: 4.3.1
@angular/compiler-cli: 4.3.1
@angular/core: 4.3.1
@angular/forms: 4.3.1
@angular/http: 4.3.1
@angular/material: 2.0.0-beta.2
@angular/platform-browser: 4.3.1
@angular/platform-browser-dynamic: 4.3.1
@angular/router: 4.3.1
@angular/service-worker: 1.0.0-beta.16

I have console.log("Can anyone hear me?!");; at the top of my app.component.ts file, outside the scope of my component.

Expected Behavior:
When the application runs, the console.log message is printed.

Observed Behavior
The console log is not running

Other Background
In the source code generated with ng build -prod -bo, the import is being marked as pure.

 /*@__PURE__*/
        console.log("Can anyone hear me?!");

Activity

  1. self-assigned this
    on Aug 2, 2017
  2. added a commit that references this issue on Aug 2, 2017
    4ef16c2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions