Skip to content

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

Merged
JoshuaKGoldberg merged 1 commit intomainfrom
function-length-threshold
Jun 3, 2024
Merged

feat: don't replace functions when text length would increase#178
JoshuaKGoldberg merged 1 commit intomainfrom
function-length-threshold

Conversation

@JoshuaKGoldberg
Copy link
Copy Markdown
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
@JoshuaKGoldberg JoshuaKGoldberg deleted the function-length-threshold branch June 3, 2024 11:31
@github-actions
Copy link
Copy Markdown

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