Skip to content

Conversation

@rschristian
Copy link
Member

Time has come IMO, let's go with minified ES2020. Especially for a lib supporting web components in the browser, there's no need to keep shipping CJS or UMD, much less ES5 versions of both.

This switches to pure terser for build tooling & ESLint can catch syntax/API usage that exceeds the target browsers.

@github-actions
Copy link

Size Change: -2.75 kB (-72.19%) 🏆

Total Size: 1.06 kB

Filename Size Change
dist/preact-custom-element.js 1.06 kB -181 B (-14.59%) 👏
dist/preact-custom-element.mjs 0 B -1.26 kB (removed) 🏆
dist/preact-custom-element.umd.js 0 B -1.31 kB (removed) 🏆

compressed-size-action

@rschristian rschristian merged commit c2ab062 into v5 Dec 15, 2025
2 checks passed
@rschristian rschristian deleted the refactor/modern-esm-only branch December 15, 2025 05:59
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