Skip to content
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

Add ignoreLocallyUsed Flag #282

Merged
merged 1 commit into from
Jun 24, 2023

Commits on Jun 23, 2023

  1. Add ignoreLocallyUsed Flag

    --ignoreLocallyUsed allows exports which aren't imported anywhere to not
    be reported as unused so long as they are used in the same file they are
    defined in.
    
    This is implemented by counting a local use of a given variable as an
    import. Note that this results in needing to traverse significantly
    more of the AST, so there may be a significant performance impact for
    larger codebases.
    DLeyland committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    21ddea2 View commit details
    Browse the repository at this point in the history