Skip to content

AOT and NONE AOT bundle size are exactly the same #5429

@xe4me

Description

@xe4me

Bug Report or Feature Request (mark with an x)

  • [x ] bug report -> please search issues before submitting
  • feature request

Versions.

@angular/cli: 1.0.0-rc.1
node: 7.6.0
os: darwin x64
@angular/common: 2.4.9
@angular/compiler: 2.4.9
@angular/core: 2.4.9
@angular/forms: 2.4.9
@angular/http: 2.4.9
@angular/material: 2.0.0-beta.2
@angular/platform-browser: 2.4.9
@angular/platform-browser-dynamic: 2.4.9
@angular/router: 3.4.9
@angular/cli: 1.0.0-rc.1
@angular/compiler-cli: 2.4.9

Repro steps.

1- Create a new project
2- Run ng build --prod --aot or ng build --prod --aot=true or ng build --prod --aot=false or ng build --prod or ng build --prod --aot --env=prod

3- For all of those build, the vendor bundle and main bundle and the rest, are exactly the same. (741kb for vendor)

Desired functionality.

I'd have thought that the aot built bundle should be smaller in size.

Strangely enough, when I clone a seed repo from AngularClass and then run their npm run build:aot:prod the bundle size is less than half of what Angular cli would produce.

Mention any other details that might be useful.

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