Skip to content

build: replace rollup with tsdown for JS bundling - #2990

Merged
tada5hi merged 3 commits into
masterfrom
tsdown
Apr 15, 2026
Merged

tada5hi merged 3 commits into
masterfrom
tsdown

Conversation

@tada5hi

@tada5hi tada5hi commented Apr 15, 2026 •

Copy link
Copy Markdown
Collaborator

Summary by CodeRabbit

Release Notes

  • Build Performance

    • Optimized build pipeline for faster compilation times
    • Enabled source maps across all packages for improved debugging
  • Bug Fixes

    • Fixed event handler invocation in entity deletion components to properly forward event payloads
    • Corrected CSS module export paths for consistent stylesheet imports
  • Chores

    • Updated project dependencies to streamline development toolchain

Copilot AI review requested due to automatic review settings April 15, 2026 15:28
@coderabbitai

coderabbitai Bot commented Apr 15, 2026 •

Copy link
Copy Markdown

Warning

Rate limit exceeded

@tada5hi has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 42 minutes and 24 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 42 minutes and 24 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 61ef50eb-6bbe-4c08-b779-56cb27d34d07

📥 Commits

Reviewing files that changed from the base of the PR and between 84fb6d3 and 22f0376.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (5)
  • .agents/conventions.md
  • apps/authup/src/packages/server-core/module.ts
  • apps/client-web/pages/roles/index/index.vue
  • packages/access/package.json
  • packages/client-web-kit/src/components/utility/entity/collection/module.ts
📝 Walkthrough

Walkthrough

This PR migrates the build system from Rollup to tsdown across 14+ packages by removing all rollup.config.mjs files, adding tsdown.config.ts equivalents, updating build scripts to use tsdown instead of rollup, and removing NODE_ENV=production settings. Additionally, CSS import paths are updated from index.css to style.css, package dependencies are adjusted, and minor code tweaks are applied.

Changes

Cohort / File(s) Summary
Root Build Configuration
rollup.config.mjs, package.json
Removed shared Rollup config factory and replaced Rollup packages (core, plugins) with tsdown and @tsdown/css.
Build System Migration - Apps
apps/authup/rollup.config.mjs, apps/authup/tsdown.config.ts, apps/authup/package.json, apps/server-core/rollup.config.mjs, apps/server-core/tsdown.config.ts, apps/server-core/package.json
Removed Rollup configs, added tsdown configs with ESM output and sourcemaps, updated build scripts to use tsdown instead of rollup with cross-env NODE_ENV removed.
Build System Migration - Access & Error Packages
packages/access/rollup.config.mjs, packages/access/tsdown.config.ts, packages/access/package.json, packages/errors/rollup.config.mjs, packages/errors/tsdown.config.ts, packages/errors/package.json
Removed Rollup configs and unplugin-swc dependency, added tsdown configs with ESM output, updated build scripts to use tsdown.
Build System Migration - Core Packages
packages/core-http-kit/rollup.config.mjs, packages/core-http-kit/tsdown.config.ts, packages/core-http-kit/package.json, packages/core-kit/rollup.config.mjs, packages/core-kit/tsdown.config.ts, packages/core-kit/package.json, packages/core-realtime-kit/rollup.config.mjs, packages/core-realtime-kit/tsdown.config.ts, packages/core-realtime-kit/package.json
Removed Rollup configs, added tsdown configs, updated build scripts and removed build:watch targets.
Build System Migration - Kit & Specs Packages
packages/kit/rollup.config.mjs, packages/kit/tsdown.config.ts, packages/kit/package.json, packages/specs/rollup.config.mjs, packages/specs/tsdown.config.ts, packages/specs/package.json
Removed Rollup configs, added tsdown configs, updated build scripts to use tsdown.
Build System Migration - Server Adapter Packages
packages/server-adapter-http/rollup.config.mjs, packages/server-adapter-http/tsdown.config.ts, packages/server-adapter-http/package.json, packages/server-adapter-kit/rollup.config.mjs, packages/server-adapter-kit/tsdown.config.ts, packages/server-adapter-kit/package.json, packages/server-adapter-socket-io/rollup.config.mjs, packages/server-adapter-socket-io/tsdown.config.ts, packages/server-adapter-socket-io/package.json, packages/server-kit/rollup.config.mjs, packages/server-kit/tsdown.config.ts, packages/server-kit/package.json
Removed Rollup configs, added tsdown configs with ESM output and sourcemaps, updated build scripts.
Build System Migration - Client Web Kit
packages/client-web-kit/rollup.config.mjs, packages/client-web-kit/tsdown.config.ts, packages/client-web-kit/package.json
Removed Rollup config, added tsdown config with Vue plugin and disabled dts generation, updated build script, changed CSS export from index.css to style.css, added ilingo dependency.
CSS Import Path Updates
apps/client-web-slim/src/app.ts, apps/client-web/nuxt.config.ts
Updated stylesheet imports from @authup/client-web-kit/../dist/index.css to @authup/client-web-kit/../dist/style.css.
Code Logic Changes
apps/client-web/pages/roles/index/index.vue
Updated event handler binding from direct reference to arrow function wrapper and normalized import formatting.
Entity Collection Module
packages/client-web-kit/src/components/utility/entity/collection/module.ts
Added console.log statement in onDeleted handler before delegating to handleDeleted.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~60 minutes

Possibly related PRs

  • chore: integrate adapters repository #2898: Directly shares overlapping build configuration migration across server adapter packages (http, kit, socket-io) and multiple rollup-to-tsdown conversions affecting the same core infrastructure.

Poem

🐰 Hops of joy for faster builds!
Rollup's gone, tsdown now builds,
Config files dance away to code,
ESM sourcemaps light the road! 🚀

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title accurately and concisely describes the primary change: replacing Rollup with tsdown for JavaScript bundling across the monorepo.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch tsdown

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates the repo’s JS bundling from Rollup to tsdown, standardizing ESM builds across packages/apps and updating related build scripts and consumer CSS paths.

Changes:

  • Removed shared/per-package Rollup configs and Rollup-related devDependencies; added tsdown (+ @tsdown/css) to the root toolchain.
  • Added tsdown.config.ts files across packages/apps and updated build:js (and related) scripts to invoke tsdown.
  • Updated client-web-kit CSS export/import path (index.css → style.css) and adjusted server-core CLI output paths to .mjs.

Reviewed changes

Copilot reviewed 48 out of 49 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
rollup.config.mjs Removed shared Rollup config factory (migration to tsdown).
package.json Dropped Rollup devDependencies; added tsdown and @tsdown/css.
packages/specs/tsdown.config.ts New tsdown config for ESM bundling.
packages/specs/rollup.config.mjs Removed per-package Rollup config.
packages/specs/package.json Updated build scripts to use tsdown.
packages/server-kit/tsdown.config.ts New tsdown config for ESM bundling.
packages/server-kit/rollup.config.mjs Removed per-package Rollup config.
packages/server-kit/package.json Updated build scripts to use tsdown.
packages/server-adapter-socket-io/tsdown.config.ts New tsdown config for ESM bundling.
packages/server-adapter-socket-io/rollup.config.mjs Removed per-package Rollup config (incl. prior externals list).
packages/server-adapter-socket-io/package.json Updated build scripts to use tsdown.
packages/server-adapter-kit/tsdown.config.ts New tsdown config for ESM bundling.
packages/server-adapter-kit/rollup.config.mjs Removed per-package Rollup config (incl. prior externals list).
packages/server-adapter-kit/package.json Updated build scripts to use tsdown.
packages/server-adapter-http/tsdown.config.ts New tsdown config for ESM bundling.
packages/server-adapter-http/rollup.config.mjs Removed per-package Rollup config (incl. prior externals list).
packages/server-adapter-http/package.json Updated build scripts to use tsdown.
packages/kit/tsdown.config.ts New tsdown config for ESM bundling.
packages/kit/rollup.config.mjs Removed per-package Rollup config.
packages/kit/package.json Updated build scripts to use tsdown.
packages/errors/tsdown.config.ts New tsdown config for ESM bundling.
packages/errors/rollup.config.mjs Removed per-package Rollup config.
packages/errors/package.json Updated build scripts to use tsdown.
packages/core-realtime-kit/tsdown.config.ts New tsdown config for ESM bundling.
packages/core-realtime-kit/rollup.config.mjs Removed per-package Rollup config.
packages/core-realtime-kit/package.json Updated build scripts to use tsdown.
packages/core-kit/tsdown.config.ts New tsdown config for ESM bundling.
packages/core-kit/rollup.config.mjs Removed per-package Rollup config.
packages/core-kit/package.json Updated build scripts to use tsdown.
packages/core-http-kit/tsdown.config.ts New tsdown config for ESM bundling.
packages/core-http-kit/rollup.config.mjs Removed per-package Rollup config.
packages/core-http-kit/package.json Updated build scripts to use tsdown.
packages/client-web-kit/tsdown.config.ts New tsdown config with Vue plugin; disables dts in bundler.
packages/client-web-kit/rollup.config.mjs Removed per-package Rollup config (previously handled CSS extraction).
packages/client-web-kit/package.json Switched build script to tsdown; changed exported CSS filename; added ilingo deps.
packages/client-web-kit/src/components/utility/entity/collection/module.ts Formatting tweaks + added a log statement in delete handler.
packages/access/tsdown.config.ts New tsdown config for ESM bundling.
packages/access/rollup.config.mjs Removed per-package Rollup config.
packages/access/package.json Updated build scripts to use tsdown; removed Rollup-specific devDependency.
apps/server-core/tsdown.config.ts New tsdown config with SWC rolldown plugin for decorators metadata.
apps/server-core/rollup.config.mjs Removed app Rollup build config.
apps/server-core/package.json Updated entry points/scripts to .mjs; switched server JS build to tsdown.
apps/client-web/pages/roles/index/index.vue Formatting cleanup; adjusted deleted event handler binding.
apps/client-web/nuxt.config.ts Updated imported CSS path to new client-web-kit CSS output name.
apps/client-web-slim/src/app.ts Updated imported CSS path to new client-web-kit CSS output name.
apps/authup/tsdown.config.ts New tsdown config for ESM bundling.
apps/authup/rollup.config.mjs Removed app Rollup build config.
apps/authup/package.json Switched JS build script to tsdown.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@packages/access/package.json`:
- Around line 62-66: The package.json devDependencies are missing unplugin-swc
which is imported by packages/access/test/vitest.config.ts and causes test
resolution failures; add "unplugin-swc" (appropriate version, e.g., a compatible
latest) to the "devDependencies" block in packages/access/package.json, then run
install so vitest can resolve the import in test/vitest.config.ts and the SWC
plugin is available during tests.

In `@packages/client-web-kit/src/components/utility/entity/collection/module.ts`:
- Around line 224-225: Remove the debug console.log from the delete flow: in the
hot runtime handler where console.log(value) precedes handleDeleted(value),
delete the console.log call and leave only the handleDeleted(value) invocation
so entity payloads are not logged and the handler remains intact.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 2e80d5d5-5b59-44ae-84fb-9eba1ea0ece0

📥 Commits

Reviewing files that changed from the base of the PR and between aa8cdd1 and 84fb6d3.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (48)
  • apps/authup/package.json
  • apps/authup/rollup.config.mjs
  • apps/authup/tsdown.config.ts
  • apps/client-web-slim/src/app.ts
  • apps/client-web/nuxt.config.ts
  • apps/client-web/pages/roles/index/index.vue
  • apps/server-core/package.json
  • apps/server-core/rollup.config.mjs
  • apps/server-core/tsdown.config.ts
  • package.json
  • packages/access/package.json
  • packages/access/rollup.config.mjs
  • packages/access/tsdown.config.ts
  • packages/client-web-kit/package.json
  • packages/client-web-kit/rollup.config.mjs
  • packages/client-web-kit/src/components/utility/entity/collection/module.ts
  • packages/client-web-kit/tsdown.config.ts
  • packages/core-http-kit/package.json
  • packages/core-http-kit/rollup.config.mjs
  • packages/core-http-kit/tsdown.config.ts
  • packages/core-kit/package.json
  • packages/core-kit/rollup.config.mjs
  • packages/core-kit/tsdown.config.ts
  • packages/core-realtime-kit/package.json
  • packages/core-realtime-kit/rollup.config.mjs
  • packages/core-realtime-kit/tsdown.config.ts
  • packages/errors/package.json
  • packages/errors/rollup.config.mjs
  • packages/errors/tsdown.config.ts
  • packages/kit/package.json
  • packages/kit/rollup.config.mjs
  • packages/kit/tsdown.config.ts
  • packages/server-adapter-http/package.json
  • packages/server-adapter-http/rollup.config.mjs
  • packages/server-adapter-http/tsdown.config.ts
  • packages/server-adapter-kit/package.json
  • packages/server-adapter-kit/rollup.config.mjs
  • packages/server-adapter-kit/tsdown.config.ts
  • packages/server-adapter-socket-io/package.json
  • packages/server-adapter-socket-io/rollup.config.mjs
  • packages/server-adapter-socket-io/tsdown.config.ts
  • packages/server-kit/package.json
  • packages/server-kit/rollup.config.mjs
  • packages/server-kit/tsdown.config.ts
  • packages/specs/package.json
  • packages/specs/rollup.config.mjs
  • packages/specs/tsdown.config.ts
  • rollup.config.mjs
💤 Files with no reviewable changes (15)
  • packages/server-adapter-kit/rollup.config.mjs
  • packages/core-http-kit/rollup.config.mjs
  • apps/server-core/rollup.config.mjs
  • packages/server-adapter-http/rollup.config.mjs
  • packages/server-kit/rollup.config.mjs
  • packages/client-web-kit/rollup.config.mjs
  • packages/errors/rollup.config.mjs
  • apps/authup/rollup.config.mjs
  • packages/core-kit/rollup.config.mjs
  • packages/access/rollup.config.mjs
  • packages/specs/rollup.config.mjs
  • packages/kit/rollup.config.mjs
  • packages/core-realtime-kit/rollup.config.mjs
  • rollup.config.mjs
  • packages/server-adapter-socket-io/rollup.config.mjs

Comment thread packages/access/package.json Resolved
@tada5hi
tada5hi merged commit 640e967 into master Apr 15, 2026
2 checks passed
@tada5hi
tada5hi deleted the tsdown branch April 15, 2026 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants