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

feat: don't replace functions when text length would increase #178

Merged
merged 1 commit into from
Jun 3, 2024

Conversation

JoshuaKGoldberg
Copy link
Owner

PR Checklist

Overview

Per the linked issue, this stops the transform from increasing text size. Long functions will no longer be inlined.

Also adds support for function expressions in variables, as that came up in threshold testing.

@JoshuaKGoldberg JoshuaKGoldberg merged commit b35e937 into main Jun 3, 2024
11 checks passed
@JoshuaKGoldberg JoshuaKGoldberg deleted the function-length-threshold branch June 3, 2024 11:31
Copy link

github-actions bot commented Jun 3, 2024

🎉 This is included in version v0.2.0 🎉

The release is available on:

Cheers! 📦🚀

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.

🚀 Feature: Don't inline if doing so would increase code size
1 participant