The new CLI for Prettier has been released, bringing significant performance improvements. The optimizations include faster file finding, efficient resolution of configuration files, and caching of formatting results. By using the cache file, the CLI can achieve a 22x speedup, and even larger improvements may be possible in the future. The installation process is simple, and remembering the cache file between runs is crucial for optimal performance.
Table of contents
InstallationOverviewFinding files fastResolving configurations fastCachingFormattingOutputting to the terminalResultsResults compared to BiomeWrapping upSort: