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 #45

Open
rolznz opened this issue Aug 29, 2023 · 3 comments
Open

Reduce bundle size #45

rolznz opened this issue Aug 29, 2023 · 3 comments
Labels
good first issue Good for newcomers

Comments

@rolznz
Copy link
Collaborator

rolznz commented Aug 29, 2023

From hzrd149/nostrudel#11

Currently we depend on nostr-tools and some other packages, which are more bloated than necessary. We might be able to replace these with more cut-down versions or implement the code ourselves.

This will get worse when we add further integrations which require their own packages such as LNC.

@rolznz
Copy link
Collaborator Author

rolznz commented Nov 29, 2023

Main issues:

  • Remove source maps (this is >3MB of wasted space)
  • Remove browserify/esbuild index.browser.js files

The above need to be done in Bitcoin Connect, alby JS SDK and lightning tools.

@rolznz
Copy link
Collaborator Author

rolznz commented Nov 29, 2023

We can upload the browserify builds to the release instead.

But actually something like skypack should be used? #85

@rolznz rolznz added the good first issue Good for newcomers label Nov 29, 2023
@rolznz
Copy link
Collaborator Author

rolznz commented Nov 29, 2023

Currently the package size is 6.04MB. We should try to get it less than 1MB.

@rolznz rolznz mentioned this issue Dec 8, 2023
21 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant