-
Notifications
You must be signed in to change notification settings - Fork 10
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
Optimize browser bundle for faster loading #105
Optimize browser bundle for faster loading #105
Conversation
Looks good, thanks for the contribution! Could you rebase to the main branch again? Lint CI failed and I just fixed it in the main branch |
Also, could you help me to confirm how much size it has decreased, before and after using |
Thank you. Got it! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. Great work! :) I've left some comments. Please help me remove directories dist
, examples/browser/dist
, and examples/browser/public
since they shouldn't be included in the codebase.
package.json
Outdated
@@ -72,6 +72,7 @@ | |||
"ethers": "^6.4.0", | |||
"ffjavascript": "0.2.55", | |||
"poseidon-lite": "^0.0.2", | |||
"rlnjs": "^3.2.3", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"rlnjs": "^3.2.3", |
This shouldn't be required
package.json
Outdated
@@ -97,6 +98,7 @@ | |||
"rollup-plugin-polyfill-node": "^0.12.0", | |||
"rollup-plugin-typescript2": "^0.34.1", | |||
"rollup-plugin-visualizer": "^5.9.0", | |||
"rollup-plugin-terser": "*", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've just found rollup-plugin-terser
is deprecated. Can we use @rollup/plugin-terser instead and pin the version ^0.4.3
?
"rollup-plugin-terser": "*", | |
"@rollup/plugin-terser": "^0.4.3", |
Yes, I got it! |
@Ryoko619 Can you also remove |
I'm sorry for the repetition. Is it done? |
@Ryoko619 Sorry, I didn't notice that we should add terser in
To rebase, we can do something like this # Under rlnjs project root
git fetch origin
git checkout feat/minimize_rlnjs_bundle
git rebase main
# Solve the conflicts
...
git push |
Can I fix it based on your contribution? Sorry for the inconvenience |
I apologize for any inconvenience caused. I rebased onto the main branch, but I couldn't resolve the issue. What should I do next? |
Hey @Ryoko619 , no worries at all! It's just
git checkout main
git pull origin main
git checkout -b feat/minimize_rlnjs_bundle_new
Install terser and add terser in
You may need to do it with |
Thank you very much once again. |
Ah and can you overwrite the branch git push -f origin feat/minimize_rlnjs_bundle_new:feat/minimize_rlnjs_bundle#92 |
ecafc53
to
d38dfff
Compare
Sorry, another conflict has occurred. |
@Ryoko619 No worries! I've rebased your branch onto the main branch. Check out this branch. Can you clone that branch Get the rebased branch from RLNjs repo # Fetch all branch from RLNjs repo
git remote add upstream [email protected]:Rate-Limiting-Nullifier/rlnjs.git
git fetch upstream
git checkout ryoko619-minimize_bundle-rebased Push the rebased branch to your remote repo and thus update the pull request
|
d38dfff
to
b905aa6
Compare
@Ryoko619 Great work! Thanks a lot for your contribution 🙏 |
I solved #92