Skip to content

Conversation

@rschristian
Copy link
Member

No description provided.

@@ -1,5 +1,5 @@
import { h } from 'preact';
import registerElement from '../../src/index';
import registerElement from '../../src/index.js';
Copy link
Member Author

Choose a reason for hiding this comment

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

Missed from #129

@github-actions
Copy link

github-actions bot commented Dec 15, 2025

Size Change: -34 B (-3.21%)

Total Size: 1.03 kB

Filename Size Change
dist/preact-custom-element.js 1.03 kB -34 B (-3.21%)

compressed-size-action

@rschristian rschristian force-pushed the refactor/es6-classes branch 4 times, most recently from e173fc3 to ad5386f Compare December 18, 2025 02:09
Comment on lines 60 to +62
PreactElement.observedAttributes = propNames;

if (Component.formAssociated) {
PreactElement.formAssociated = true;
}
PreactElement.formAssociated = Component.formAssociated || false;
Copy link
Member Author

Choose a reason for hiding this comment

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

Static class properties are ES2022 and compress slightly worse. This will do

@rschristian rschristian marked this pull request as ready for review December 18, 2025 02:14
@rschristian rschristian merged commit 5aec54e into v5 Dec 18, 2025
2 checks passed
@rschristian rschristian deleted the refactor/es6-classes branch December 18, 2025 02:14
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.

1 participant