Skip to content

Conversation

@christopherthielen
Copy link
Member

@christopherthielen christopherthielen commented Jan 3, 2026

This PR modernizes the build toolchain with faster, Rust-based tools and updates all dependencies.

Changes
🔧 Migrate from Rollup to Rolldown (c522c49)

  • Replace rollup with rolldown (Rust-based, Rollup-compatible bundler)
  • Replace rollup.config.js with rolldown.config.mjs
  • Use rollup-plugin-styles with moduleTypes: { '.css': 'js' } for CSS injection
  • Add resolve.alias to map react/jsx-runtime → preact/jsx-runtime
  • Update Preact from ~10.4.8 → ^10.28.1 (required for JSX runtime)
  • Update TypeScript from ^4.0.3 → ^5.9.3
  • Update tsconfig.json lib to es2017 for Promise.finally support

🔄 Switch dev server (aa330be)

  • Replace http-server with serve (already a dependency)
  • Update serve to ^14.2.5

📦 Update all dependencies (c7405cb)

  • Major updates: d3-hierarchy (2→3), d3-interpolate (1→3), husky (4→9), prettier (2→3)
  • Migrate husky config from package.json to .husky/pre-commit
  • Update type definitions and other dev dependencies

⚡ Migrate compilation to tsgo (cfc23c3)

  • Add @typescript/native-preview (tsgo - Go-based TypeScript compiler)
  • Use tsgo for lib/ and lib-esm/ compilation
  • Keep typescript for rolldown's internal type handling

@christopherthielen christopherthielen changed the title chore: migrate from rollup to rolldown Modernize Build Toolchain Jan 3, 2026
@christopherthielen christopherthielen merged commit 8e73b7d into master Jan 3, 2026
2 checks passed
@christopherthielen christopherthielen deleted the rolldown branch January 3, 2026 05:33
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