Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert to TS, make code more minifier friendly in places #1

Merged
merged 1 commit into from
Apr 18, 2022
Merged

Convert to TS, make code more minifier friendly in places #1

merged 1 commit into from
Apr 18, 2022

Conversation

yellowsink
Copy link
Member

Some size optimisations, for example instead of try { object.defineproperty } catch { cleanup }, you can use if (!reflect.defineproperty) { cleanup } which minifies down better.

Also adds some comments and fixes (now) hook.ts:19 being completely broken before

@twnlink twnlink merged commit c0b23c3 into Cumcord:master Apr 18, 2022
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.

None yet

2 participants