-
Notifications
You must be signed in to change notification settings - Fork 8
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
chore: optimize build #116
Conversation
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.
Well I still cant approve this change since the eval code is still there not in the dist/js/backgroundPage.js
script but in the dist/js/injected.js
script in both builds the prod and the dev. That's because of moving the proof generation part from the background to the contentscript.
@iskdrews what's the exact error there? I can't see any eval errors and the demo works as expected. |
eab84a9
to
0e2de1c
Compare
There isn't any error, because the eval code is just moved the |
- [x] Remove clean scripts - [x] Update source maps
0e2de1c
to
f048d2f
Compare
Ya I'm not seeing any errors on the cryptkeeper side, except for a |
@iskdrews I think it's ok if we have generated code with |
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.
This is building and working good for me. I am not understanding the injection being an issue @iskdrews, could you explain that to me when you can?
I think all is good now, as @0xmad said it is just an hardcoded value and it doesn't take any inputs so no security risk. |
There is an issue for tracking resolving this warning already, but not resolved yet. |
Explanation
Get rid of clean scripts and replace source maps to get rid of eval code + improve build speed a little bit.
Details are bellow:
More Information
Fixes #107
Screenshots/Screencaps
N/A
Manual Testing Steps
Just try to run
npm run dev
andnpm run build
to check if extension loads properly.Pre-Merge Checklist
+ If there are functional changes: