Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: tailwindlabs/tailwindcss
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.4.12
Choose a base ref
...
head repository: tailwindlabs/tailwindcss
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.4.13
Choose a head ref
  • 2 commits
  • 4 files changed
  • 2 contributors

Commits on Sep 23, 2024

  1. Improve the performance when checking broad glob patterns. (#14481)

    In a large project, it's costly to repeatedly call the
    function `micromatch.isMatch` that parses a glob pattern,
    creates a regular expression, and tests the path name
    against the regular expression. To optimize performance,
    it's important to cache the parsing and creating process
    before entering the loop.
    
    For example, the content configuration in a project
    looks like this
    `['./pages/**/*.{ts,js}', './node_modules/pages/**/*.{ts,js}']`.
    If the project has 10000 matched files and 10 glob patterns,
    the function `micromatch.isMatch` will be called 100000 times.
    
    ---
    
    Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
    ivanwonder and RobinMalfait authored Sep 23, 2024
    Configuration menu
    Copy the full SHA
    066ccf8 View commit details
    Browse the repository at this point in the history
  2. 3.4.13

    RobinMalfait committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    ed3c535 View commit details
    Browse the repository at this point in the history
Loading