angular / angular-cli

CLI tool for Angular
https://cli.angular.io
MIT License
26.71k stars 11.98k forks source link

remove angular decorators in third part library (@angular/material2) #6581

Closed aitboudad closed 6 years ago

aitboudad commented 7 years ago

Bug Report or Feature Request (mark with an x)

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

Versions.

@ngtools/webpack: 1.4.0

Desired functionality.

When building in AOT mode I noticed that only decorators defined in ts files are stripped and those defined in node_modules such as @angular/material2 are still included in the generated bundle.

Mention any other details that might be useful.

Example material2:

Ge.decorators=[{type:F.Component,args:[{selector:"md-slider, mat-slider",providers:[Be],
host:{"(focus)":"_onFocus()","(blur)":
filipesilva commented 7 years ago

We're looking at adding this sort of feature.

aitboudad commented 6 years ago

done by @angular-devkit/build-optimizer

angular-automatic-lock-bot[bot] commented 4 years ago

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.