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

chroe: move snyk to devDep #185

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

chroe: move snyk to devDep #185

wants to merge 2 commits into from

Conversation

eugbyte
Copy link
Contributor

@eugbyte eugbyte commented Jul 21, 2021

Right now, snyk is added as a direct dependency. This increases the size of the oa-verify library by at least 20mb.

An implication, for example, is that the aws lambda is preventing me from uploading my function (which depends on oa-verify) due to the size limit.

I moved snyk dependency to a devDepency.

To test

npm i
npm run snyk-protect

@eugbyte eugbyte requested a review from Nebulis July 21, 2021 15:19
@Nebulis
Copy link
Contributor

Nebulis commented Jul 22, 2021

image

Looks like it's required in order to run snyk protect. Let's try to use tree shaking instead => https://webpack.js.org/guides/tree-shaking/

Please show the bundle before and after applying tree shaking https://www.npmjs.com/package/webpack-bundle-analyzer

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