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

Reduce the installation size even more #1396

Merged
merged 10 commits into from
Apr 10, 2024

Conversation

SukkaW
Copy link
Contributor

@SukkaW SukkaW commented Apr 9, 2024

The PR follows #1394.

The PR reduces another 100 KiB from the installation size:

$ du -sh build
6.1M	build

@SukkaW SukkaW marked this pull request as draft April 9, 2024 17:03
@SukkaW
Copy link
Contributor Author

SukkaW commented Apr 9, 2024

CI failed, converting the PR to draft for now.

@SukkaW SukkaW force-pushed the reduce-bundle-size-2 branch 2 times, most recently from c7d1953 to a84b16b Compare April 10, 2024 03:54
@SukkaW SukkaW marked this pull request as ready for review April 10, 2024 07:11
@SukkaW
Copy link
Contributor Author

SukkaW commented Apr 10, 2024

@raineorshine Now CI has passed, the PR is ready for review.

Copy link
Owner

@raineorshine raineorshine left a comment

Choose a reason for hiding this comment

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

Thanks so much!

Comment on lines -539 to +537
/** Reverts a valid semver version to a pseudo version. NOOP If the original version was a valid semver version. */
const revertPseudoVersion = (current: string, latest: string) =>
flow(revertLeadingV(current), revertMissingMinorAndPatch(current), revertMissingPatch(current))(latest)
return result
}
Copy link
Owner

Choose a reason for hiding this comment

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

I'll accept this change, though a slightly preferable approach would have been to implement a simple flow function and preserve the existing structure of the code. (The currying was clearly unnecessary though.)

@raineorshine raineorshine merged commit 6dba8b4 into raineorshine:main Apr 10, 2024
7 checks passed
@SukkaW SukkaW deleted the reduce-bundle-size-2 branch April 11, 2024 09:10
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