Skip to content

chore: drop cjs and migrate building to vanilla Typescript#919

Merged
susnux merged 1 commit intomainfrom
chore/typescript
Apr 16, 2026
Merged

chore: drop cjs and migrate building to vanilla Typescript#919
susnux merged 1 commit intomainfrom
chore/typescript

Conversation

@susnux
Copy link
Copy Markdown
Contributor

@susnux susnux commented Apr 16, 2026

All tools we use for bundling nowadays support Javascript modules. So no need for commonjs anymore.

With this simplification we also can migrate to vanilla Typescript compiler for transpiling the library.
Vite is not really needed here as the app bundler will take care of transpiling unsupported syntax (es version) etc.
Moreover there is no real performance difference, especially comparing tsgo with rolldown-vite or tsdown does not make much of a difference.

All tools we use for bundling nowadays support Javascript modules.
So no need for commonjs anymore.

With this simplification we also can migrate to vanilla Typescript
compiler for transpiling the library.
Vite is not really needed here as the app bundler will take care of
transpiling unsupported syntax (es version) etc.
Moreover there is no real performance difference, especially comparing
tsgo with rolldown-vite or tsdown does not make much of a difference.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.30%. Comparing base (e1ddc89) to head (21833ab).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #919   +/-   ##
=======================================
  Coverage   87.30%   87.30%           
=======================================
  Files           5        5           
  Lines          63       63           
  Branches       19       19           
=======================================
  Hits           55       55           
  Misses          8        8           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown

@artonge artonge left a comment

Choose a reason for hiding this comment

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

Always up for simplify our systems :)

@susnux susnux merged commit f0c1df1 into main Apr 16, 2026
9 checks passed
@susnux susnux deleted the chore/typescript branch April 16, 2026 13:02
@susnux susnux mentioned this pull request Apr 16, 2026
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.

3 participants