Skip to content

Removing unused dependencies #158

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
shprink opened this issue Apr 19, 2015 · 2 comments
Closed

Removing unused dependencies #158

shprink opened this issue Apr 19, 2015 · 2 comments

Comments

@shprink
Copy link

shprink commented Apr 19, 2015

Hi,

Would it be possible for ng-annotate to remove unused dependencies from Angular' modules? A new option?

I'll be happy to help if you feel that it is a feature worth adding to your project.

Cheers

@olov
Copy link
Owner

olov commented Apr 19, 2015

As for now I don't think so, but thanks for offering to help. Unused dependencies is nothing more than unused function parameters and your linter should be able to warn for that (the actual removal you'd need to do manually).

Also #42

@olov olov closed this as completed Apr 19, 2015
@shprink
Copy link
Author

shprink commented Apr 19, 2015

I do not think Angular's DI can be compare to function parameters in term of overhead but you are right simple linter would do.

cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants