-
Notifications
You must be signed in to change notification settings - Fork 433
chore: Update to use tsdown for build system #2824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for docsearch ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for docsearch-demo ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
pipeline1987
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌🏽
dylantientcheu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good!
Summary
• Migrate the build system from Rollup + Babel to tsdown across all packages, simplifying configuration and reducing dependencies
Details
This PR replaces the existing Rollup and Babel build configuration with tsdown, a modern TypeScript-first bundler built on top of Rolldown.
Changes:
• Remove Rollup config files (rollup.config.js, rollup.dts.config.js) from all packages
• Remove Babel config files (babel.config.mjs) from all packages
• Remove package-level tsconfig.declaration.json files
• Add tsdown.config.ts to each package with equivalent build configuration
• Add shared tsdown.base.ts for common configuration
• Remove rollup.base.config.js from root
• Update package.json scripts and dependencies accordingly
Affected packages:
• docsearch-core
• docsearch-js
• docsearch-modal
• docsearch-react
• docsearch-sidepanel
• docsearch-sidepanel-js
Benefits:
• Simplified build configuration (single tool instead of Rollup + Babel + plugins)
• Reduced dependency footprint (-1,355 lines in yarn.lock, +476 lines = net reduction of ~879 lines)
• Modern TypeScript-native tooling with better DX
• Faster build times (Rolldown is Rust-based)