Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
1e1870d
feat(build): quieter Nitro server build output
atinux Nov 8, 2026
7504dae
feat(build): name Vite phases client app and server app
atinux Nov 8, 2026
e850d21
feat(build): name breakdown phases client app and server app
atinux Nov 8, 2026
f01be13
feat(build): name Vite phases app (client) and app (server)
atinux Nov 8, 2026
49b6f7c
feat(build): name Nitro phase server (nitro)
atinux Nov 8, 2026
1638406
fix(build): time Vite client and server builds from the build itself
atinux Nov 8, 2026
d2972af
feat(build): quiet server output for Nitro 3 and @nuxt/vite-server
atinux Nov 8, 2026
a839115
revert(build): move banner change to its own pull request
atinux Nov 9, 2026
487ac6c
feat(build): name the bundling phases bundle (client), bundle (server…
atinux Nov 10, 2026
1095190
feat(build,dev): label the total time on the progress line
atinux Nov 10, 2026
9109279
[autofix.ci] apply automated fixes
autofix-ci[bot] Nov 10, 2026
ce0cf75
refactor(build): one Vite plugin and the phase timings for the server…
atinux Nov 12, 2026
31b35fa
fix(capture): pin labelled phase clocks in recorded timings
atinux Nov 12, 2026
2ab4a35
[autofix.ci] apply automated fixes
autofix-ci[bot] Nov 12, 2026
90eb4df
[autofix.ci] apply automated fixes (attempt 2/3)
autofix-ci[bot] Nov 12, 2026
b8f957a
[autofix.ci] apply automated fixes (attempt 3/3)
autofix-ci[bot] Nov 12, 2026
5f7e5b7
fix(capture): pre-bundle @vue/devtools-core in the capture fixture
atinux Nov 12, 2026
e171a8c
[autofix.ci] apply automated fixes
autofix-ci[bot] Nov 12, 2026
590ee4c
fix(build): count only written prerenders and list failures only when…
atinux Nov 12, 2026
fbf57f9
fix(build): keep Nitro's 'You can preview this build using' wording
atinux Nov 12, 2026
e494686
fix(logger): keep the blank line after the outro when Nuxt wraps stdout
atinux Nov 12, 2026
d9916f2
feat(build): end the build on how to preview and deploy it
atinux Nov 12, 2026
59ac473
feat(build): drop the sparkles from the build complete line
atinux Nov 12, 2026
24642e5
feat(build): drop the sparkles and exclamation from the static build …
atinux Nov 12, 2026
dff1193
feat(build): drop the exclamation from the build complete line
atinux Nov 12, 2026
a091089
fix(build): keep the deploy command for static presets
atinux Nov 12, 2026
a39f140
feat(build): show each phase on its own line with a bar for its share…
atinux Nov 12, 2026
473a9ad
feat(build): list prerendered routes, all of them in CI
atinux Nov 12, 2026
9319ceb
feat(build): always end on Build complete with the phase table under it
atinux Nov 12, 2026
31b59f0
fix(build): align prerendered routes with the rest of the summary
atinux Nov 12, 2026
2921ece
fix(build): align failed prerender routes with their header
atinux Nov 12, 2026
5d48a21
fix(build): list any number of prerendered routes without spreading them
atinux Nov 12, 2026
38a26b1
fix(build): restore the server builder banner from #1671
atinux Nov 12, 2026
598864a
fix(build): name the project directory in suggested commands
atinux Nov 12, 2026
3e2ae02
feat(build): show the phase timings as one stacked bar with a legend
atinux Nov 12, 2026
f837b1a
feat(build): keep the one-line timing breakdown, with the per-phase t…
atinux Nov 12, 2026
703ce7d
fix(build): only offer any static host for the generic static preset
atinux Nov 12, 2026
21b7d00
fix(build): leave Vite's native reporter out of server environments
atinux Nov 12, 2026
4f3a1f7
Merge branch 'main' into feat/quiet-server-build
atinux Nov 16, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions capture/fixture/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,11 @@ export default defineNuxtConfig({
tasks: true,
},
},
vite: {
// Pre-bundled so Vite never discovers it while serving the first request:
// whether it does depends on timing, and its hint would flip the captures.
optimizeDeps: {
include: ['@vue/devtools-core'],
},
},
})
6 changes: 6 additions & 0 deletions capture/lib/frames.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ describe('scrubbing a right-aligned tag', () => {
expect(result.styles).toHaveLength(result.line.length)
})

it.each(['⠋ Setting up modules 1.2s · total 3.4s', '⠋ Setting up modules 1.2s · 3.4s', '⠋ Setting up modules 3.4s'])('should pin a phase line however the clocks differed: %s', (line) => {
const styles = Array.from({ length: line.length }).fill(undefined) as never

expect(scrubLine(line, styles, resolveRules(['timings'])).line).toBe('⠋ Setting up modules 42 ms')
})

it('should leave a line without padding alone', () => {
expect(scrub('42 ms').trimEnd()).not.toBe('')
const plain = '✔ Vite client built in 1085 ms'
Expand Down
2 changes: 1 addition & 1 deletion capture/lib/scrub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const RULES: Record<string, ScrubRule> = {
{ pattern: /\b\d+(?:\.\d+)?\s?s(?![a-z])/g, replacement: () => '42 ms' },
// A phase clock is only printed beside the total once they differ, so
// the pair is a function of machine speed and carries nothing once pinned.
{ pattern: /42 ms \u00B7 42 ms/g, replacement: () => '42 ms' },
{ pattern: /42 ms \u00B7 (?:total )?42 ms/g, replacement: () => '42 ms' },
],
},
versions: {
Expand Down
92 changes: 42 additions & 50 deletions capture/output/nuxt-dev-install-module.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 1 addition & 14 deletions capture/output/nuxt-dev-install-module.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
styles: a057ea820f39fe11
'@vue/devtools-core',
]
include: [
optimizeDeps: {
}
styles: c631b1f09ab5adaa
Local http://localhost:3000/
Local http://localhost:3000/ ⠋
━━━━━━━━━━━━━━━━━━━━ 0% · 42 ms
Expand All @@ -18,7 +13,6 @@ styles: a057ea820f39fe11
✔ 1 request 42 ms median ⚠ 2 warnings
⠋ installing @nuxt/scripts... · 42 ms
⠋ installing with npm · 42 ms
@vue/devtools-core ← ./virtual:nuxt:.nuxt%2Fruntime.vue-devtools-client.CN4wuBpFwm.js
BUILDING ✔ dependencies installed · GET /scripts · 200 · 42 ms
BUILDING ✔ installed @nuxt/scripts · GET /scripts · 200 · 42 ms
READY watching for changes
Expand All @@ -32,18 +26,11 @@ styles: a057ea820f39fe11
STARTING preparing your app
STARTING setting up modules
STARTING starting Nuxt...
vite: {
}
o open · i info · l logs · n network · p routes · ? help · q quit
r restart · o open · i info · l logs · n network · p routes · ? help · q quit
⣠⣦⣠⡀ Nuxt x.y.z
⣠⣦⣠⡀ Nuxt x.y.z ready in 42 ms
Learn more: https://vite.dev/guide/dep-pre-bundling.html
Pre-bundle them in your nuxt.config.ts to avoid page reloads:
Yes
export default defineNuxtConfig({
})
ℹ Vite discovered new dependencies at runtime:
● Yes / ○ No
✔ Do you want to install @nuxt/scripts package?
❯ Do you want to install @nuxt/scripts package?
47 changes: 24 additions & 23 deletions capture/output/nuxt-dev-plain-restart.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion capture/output/nuxt-dev-plain-static.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading