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 bundle size further more #1397

Merged
merged 7 commits into from
Apr 12, 2024

Conversation

SukkaW
Copy link
Contributor

@SukkaW SukkaW commented Apr 11, 2024

The PR follows #1394 and #1396.

The PR does the following things:

  • Removes more lodash usage
  • Replaces lodash/cloneDeep with https://npm.im/rfdc
  • Replaces lodash/isEqual with https://npm.im/dequal
  • Replaces lodash/pick, lodash/pickBy, and lodash/sortBy with self-implemented methods
  • Remove make-fetch-happen
    • Since npm-check-updates now target Node.js 18+, let's use Node.js built-in globalThisfetch.
$ du -sh build
5.9M	build

Another 250 KiB of installation size would be reduced by the PR.

@SukkaW SukkaW changed the title Reduce bundle size Reduce bundle size further more Apr 11, 2024
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.

Thank you!

@@ -0,0 +1,34 @@
// vite.config.mts
Copy link
Owner

Choose a reason for hiding this comment

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

This file appears to have been accidentally added to version control.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh!

This file is an intermediate file created by vite, it should have been deleted by vite after the build, I must have aborted the process somehow and it leaks to the PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed in fd881ba (#1397).

@raineorshine raineorshine merged commit 6a7ebb2 into raineorshine:main Apr 12, 2024
7 checks passed
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