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

fix(tsc): improve regexp performance for global type removal #4260

Merged
merged 1 commit into from
Apr 22, 2024

Commits on Apr 12, 2024

  1. fix(tsc): improve regexp performance for global type removal

    The issue with the removal of global types was the RegExp, for
    certain files written like `.tsbuildinfo` which is a single line
    long contents file it would scan the whole line scanning for the
    characters.
    
    By specifying `m` flag it causes ^ and $ to match the begin/end
    of each line (not only begin/end of string).
    
    This removes the need for the check of the filename to do the
    replacement check.
    blake-newman committed Apr 12, 2024
    Configuration menu
    Copy the full SHA
    7a3d615 View commit details
    Browse the repository at this point in the history