Changed admin-surface apps to build with Rolldown via rolldown-vite#29132
Conversation
|
Bugbot is not enabled for this team, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (9)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (8)
WalkthroughChangesThe workspace now defines a Related issues: None specified. Related PRs: None specified. Suggested labels: dependencies, tooling Suggested reviewers: None specified. 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Tools execution failed with the following error: Failed to run tools: 13 INTERNAL: Received RST_STREAM with code 2 (Internal server error) Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
3a38789 to
62b6a8d
Compare
|
Bugbot is not enabled for this team, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
| Command | Status | Duration | Result |
|---|---|---|---|
nx run @tryghost/admin-x-settings:test:acceptance |
✅ Succeeded | 10m 1s | View ↗ |
nx run-many --target=build --projects=tag:publi... |
✅ Succeeded | <1s | View ↗ |
nx run ghost:test:ci:integration |
✅ Succeeded | 2m 42s | View ↗ |
nx run-many -t test:unit -p @tryghost/activityp... |
✅ Succeeded | 7m 46s | View ↗ |
nx run ghost:test:integration |
✅ Succeeded | 2m 40s | View ↗ |
nx run @tryghost/admin:build |
✅ Succeeded | 3m 24s | View ↗ |
nx run ghost:test:legacy |
✅ Succeeded | 2m 56s | View ↗ |
nx run ghost-admin:test |
✅ Succeeded | 3m 3s | View ↗ |
Additional runs (7) |
✅ Succeeded | ... | View ↗ |
💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗
☁️ Nx Cloud last updated this comment at 2026-07-07 14:57:02 UTC
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #29132 +/- ##
==========================================
- Coverage 74.26% 74.26% -0.01%
==========================================
Files 1566 1566
Lines 135737 135737
Branches 16444 16445 +1
==========================================
- Hits 100805 100804 -1
Misses 33932 33932
- Partials 1000 1001 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
E2E Tests FailedTo view the Playwright test report locally, run: REPORT_DIR=$(mktemp -d) && gh run download 28800256568 -n playwright-report -D "$REPORT_DIR" && npx playwright show-report "$REPORT_DIR" |
1 similar comment
E2E Tests FailedTo view the Playwright test report locally, run: REPORT_DIR=$(mktemp -d) && gh run download 28800256568 -n playwright-report -D "$REPORT_DIR" && npx playwright show-report "$REPORT_DIR" |
62b6a8d to
29be910
Compare
|
Bugbot is not enabled for this team, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
E2E Tests FailedTo view the Playwright test report locally, run: REPORT_DIR=$(mktemp -d) && gh run download 28806000400 -n playwright-report -D "$REPORT_DIR" && npx playwright show-report "$REPORT_DIR" |
E2E Tests FailedTo view the Playwright test report locally, run: REPORT_DIR=$(mktemp -d) && gh run download 28812564719 -n playwright-report -D "$REPORT_DIR" && npx playwright show-report "$REPORT_DIR" |
ref https://linear.app/ghost/issue/PLA-96 - adds a `rolldown` named catalog (vite: npm:rolldown-vite@7.3.1) and points the 8 admin-surface apps (posts, stats, admin, admin-x-framework, admin-x-settings, admin-x-design-system, shade, activitypub) at catalog:rolldown - public UMD apps stay on stock vite until their own Rolldown config lands (#29141) - the known Rolldown interop breakers are already fixed on main: shade Flag ESM swap (#29139), @svg-maps/world shim (#29143), @tryghost/i18n dual-format (#29144) - verified: all 8 apps + the admin shell build clean under Rolldown; react/react-dom stay external (no dual-instance regression); only benign bundler-agnostic warnings
6afa9c9 to
5ddc639
Compare
|
Bugbot is not enabled for this team, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |

ref PLA-96
Switches the 8 admin apps to build with Rolldown via
rolldown-vite(the Vite-7-API fork that swaps Vite's Rollup+esbuild pair for the Rust bundler).What
Adds a
rolldownnamed catalog inpnpm-workspace.yaml:…and the 8 admin apps opt in by changing their vite dep from
"vite": "catalog:"to"vite": "catalog:rolldown":admin,shade,admin-x-framework,posts,stats,admin-x-settings,activitypub,admin-x-design-systemNo app config changes are needed — Rolldown is a drop-in for these. The version stays defined once (in the catalog), while each app's
package.jsonnow visibly declares that it builds on rolldown.Why the public apps are excluded
A repo-wide swap breaks the public UMD apps: portal sets
manualChunks: falsein its output options, which Rolldown rejects (TypeError: manualChunks is not a function), and Vite deprecatesoptimizeDeps.rollupOptions→rolldownOptions. Those apps (portal,comments-ui,signup-form,sodo-search,announcement-bar) stay on the stockvitecatalog and need their own config work — a follow-up.Why
rolldown-vite@7, not Vite 8Vite 8 also ships Rolldown, but bundles Vite-8 API changes on top. Pinning to the 7.x line isolates the bundler swap (validated here) from the Vite-8 API migration (a separate, later step).
rolldown-vitecarries an npm deprecation notice pointing at Vite 8 — that's expected; it's the supported Vite-7 migration path.Benchmarks
Local
vite build, min of 3 runs, Vite 7.3.2 + Rollup → rolldown-vite 7.3.1:Output is byte-equivalent — a clean single admin build is 14.94 MB / 129 chunks on Rolldown vs 15.05 MB / 142 chunks on Rollup (one shared
enchunk and one koenig chunk each; no duplication).Validation
shade,admin-x-framework,posts,stats,admin-x-settings,activitypub,admin,admin-x-design-system— ~1,800 tests).Note
While benchmarking I hit a latent quirk in
apps/admin/vite-ember-assets.ts:closeBundlecopies assets intodist/and back without clearing, so repeated non-clean builds accumulate stale chunks. Not caused by this change and not fixed here — flagging for a small separate cleanup.