Repository navigation
fix(plugin_timings): reword the warning so it does not contradict itself - #10788
Merged
Merged
Conversation
✅ Deploy Preview for rolldown-rs canceled.
|
IWANABETHATGUY
marked this pull request as ready for review
August 26, 2026 16:15
|
This is a lot clearer, thank you! |
hyfdev
approved these changes
Aug 27, 2026
Member
Merge activity
|
…elf (#10788) The `[PLUGIN_TIMINGS]` warning said "Those rows are 100% of the build; the rest of the 100% is below" and "100% of 7.1s inside plugin hooks (7.4s)" when the listed rows added up to more than the build, and "… and N more below 1s or past the cap" for rows that were all over 1s. Before, on a Vite build: ``` [PLUGIN_TIMINGS] Your build spent 100% of 7.1s inside plugin hooks (7.4s). Measured inside the callback, so queue time is excluded and time the callback itself awaited is not: - @rolldown/plugin-babel transform (87%, 6.2s, 1175 calls) - vite:worker load (19%, 1.4s, 1 call) - vite-plugin-pwa load (18%, 1.3s, 1 call) Those rows are 100% of the build; the rest of the 100% is below. Not measurable — 2 hooks whose calls overlap, so elapsed time covers work other calls were doing. Profile with `node --cpu-prof`: - vite:asset load (402 calls) - pixelarticons-svg-icon load (59 calls) See https://rolldown.rs/reference/InputOptions.checks#plugintimings for more details. ``` After: ``` [PLUGIN_TIMINGS] Plugin hooks ran for 7.4s. The build took 7.1s. Hooks such as `closeBundle` run after the build ends, so hook time can be more than build time. The slowest hooks, timed inside each callback (the wait before a callback starts is excluded, the time it awaits is included): - @rolldown/plugin-babel transform (87%, 6.2s, 1175 calls) - vite:worker load (19%, 1.4s, 1 call) - vite-plugin-pwa load (18%, 1.3s, 1 call) These rows add up to more than the total. Callbacks can overlap, so the same time counts for more than one row. 2 hooks are listed without a time. Their calls overlapped, so the time inside one call includes work from other calls. To find their cost, profile the build with `node --cpu-prof`: - vite:asset load (402 calls) - pixelarticons-svg-icon load (59 calls) See https://rolldown.rs/reference/InputOptions.checks#plugintimings for more details. ``` When the rows add up to less than the total, the sentence is "Additional hook time came from the hooks below and from hooks under 1s." with no number, because the rows are a sum of spans and the headline is their union.
graphite-app
Bot
force-pushed
the
fix/plugin-timings-warning-wording
branch
from
August 27, 2026 03:15
74d0c1b to
3ce2f28
Compare
Merged
shulaoda
added a commit
that referenced
this pull request
Sep 2, 2026
## [1.2.7] - 2026-09-02 ### 🐛 Bug Fixes - rolldown_binding: make `PreRenderedChunk.facadeModuleId` nullable like Rollup (#10810) by @IWANABETHATGUY - plugin_timings: reword the warning so it does not contradict itself (#10788) by @IWANABETHATGUY - model a facade's host import in the fold cycle check (#10743) by @ulrichstark ### 🧪 Testing - dev: add circular reexport test (#10563) by @sapphi-red ### ⚙️ Miscellaneous Tasks - deps: update npm packages (#10795) by @renovate[bot] - deps: update rust crates (#10794) by @renovate[bot] - deps: update dependency rolldown-plugin-dts to v0.28.3 (#10805) by @renovate[bot] - renovate: disable oxc auto-updates (#10813) by @IWANABETHATGUY - deps: upgrade oxc to 0.148.0 (#10809) by @camc314 - deps: update pnpm to v11.24.0 (#10803) by @renovate[bot] - deps: update crate-ci/typos action to v1.50.0 (#10806) by @renovate[bot] - deps: update test262 submodule for tests (#10808) by @rolldown-guard[bot] - deps: update rollup submodule for tests to v4.63.1 (#10807) by @rolldown-guard[bot] - deps: update crate-ci/typos action to v1.49.1 (#10796) by @renovate[bot] - deps: update github actions (#10749) by @renovate[bot] Co-authored-by: shulaoda <[email protected]>
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
[PLUGIN_TIMINGS]warning said "Those rows are 100% of the build; the rest of the 100% is below" and "100% of 7.1s inside plugin hooks (7.4s)" when the listed rows added up to more than the build, and "… and N more below 1s or past the cap" for rows that were all over 1s.Before, on a Vite build:
After:
When the rows add up to less than the total, the sentence is "Additional hook time came from the hooks below and from hooks under 1s." with no number, because the rows are a sum of spans and the headline is their union.