Skip to content

Conversation

TrySound
Copy link
Member

@TrySound TrySound commented Apr 29, 2025

Now we use html attribute for all components. Now components like Box with already set "className" property will be migrated to "class" attribute. This cuts ~350kB in builder scripts. Total ~1MB after removing both html and aria attributes.

- 5036    build/client/assets/
+ 4676    build/client/assets/

Attributes and properties now have the following order

  • component properties
  • tag attributes
  • global html attributes
  • role
  • aria attributes

Now we use html attribute for all components. Now components like Box
with already set "className" property will be migrated to "class"
attribute. This cuts ~350kB in builder scripts. Total ~1MB after
removing both html and aria attributes.

```diff
- 5036    build/client/assets/
+ 4676    build/client/assets/
```
@TrySound TrySound merged commit a071280 into main Apr 30, 2025
19 checks passed
@TrySound TrySound deleted the html-props2 branch April 30, 2025 07:12
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