Skip to content

Conversation

@8bittitan
Copy link
Contributor

@8bittitan 8bittitan commented Jan 1, 2026

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)

@netlify
Copy link

netlify bot commented Jan 1, 2026

Deploy Preview for docsearch ready!

Name Link
🔨 Latest commit a30fe87
🔍 Latest deploy log https://app.netlify.com/projects/docsearch/deploys/695706d267a2fa0008d2c595
😎 Deploy Preview https://deploy-preview-2824--docsearch.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Jan 1, 2026

Deploy Preview for docsearch-demo ready!

Name Link
🔨 Latest commit a30fe87
🔍 Latest deploy log https://app.netlify.com/projects/docsearch-demo/deploys/695706d26f6d6f0008e901e7
😎 Deploy Preview https://deploy-preview-2824--docsearch-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

@pipeline1987 pipeline1987 left a comment

Choose a reason for hiding this comment

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

👌🏽

@pipeline1987 pipeline1987 self-requested a review January 2, 2026 14:21
Copy link
Contributor

@dylantientcheu dylantientcheu left a comment

Choose a reason for hiding this comment

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

Looking good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants