发布

  • fix(js): update tinyglobby to speed up shallow file matching (#30415)

    frostbyte_neo 发布于 2025-03-19 13:20:18 +00:00

    tinyglobby at 0.2.10 (what we use now) is slow on shallow files, but
    the latest version 0.2.12 is fast due to this PR
    https://github.com/SuperchupuDev/tinyglobby/pull/69/files.

    This PR updates both the js and esbuild plugins to use the newest
    versions, but also adds tinyglobby@^0.2.12 to our root package.json
    so we get the speed increase right away. I removed fast-glob in our
    repo scripts and replaced it with tinyglobby.

    Current Behavior

    Asset handling is slow for shallow files like LICENSE but is fine for
    scoped patterns like src/**/*.ts.

    Expected Behavior

    Asset handling should be fast for shallow files.

    Related Issue(s)

    Fixes #

    下载附件