Skip to content

Conversation

@rschristian
Copy link
Member

@rschristian rschristian commented Oct 25, 2025

Just something to build on, no intention of shipping anytime soon

Features

  • Supports Node-native ESM, not that it's too important here, but causes fewer issues

Breaking Changes

  • Adds export map
  • Switches ESM output to use .mjs
  • Drops kebab to camel attribute conversion
    • This is rather weird and supports behavior (kebab-cased attributes) which aren't standard to HTML. Preact makes no attempt to coerce or guess naming conventions and we should match that behavior here.

@github-actions
Copy link

github-actions bot commented Oct 25, 2025

Size Change: -2.94 kB (-73.48%) 🏆

Total Size: 1.06 kB

Filename Size Change
dist/preact-custom-element.esm.js 0 B -1.32 kB (removed) 🏆
dist/preact-custom-element.js 1.06 kB -244 B (-18.71%) 👏
dist/preact-custom-element.umd.js 0 B -1.37 kB (removed) 🏆

compressed-size-action

* chore: Correct TS module resolution mismatch

* chore: Update eslint config

* refactor: User terser as build script, cull leftover export formats
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