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

contract bundle too large when built from npm #4

Closed
dckc opened this issue Dec 28, 2023 · 1 comment · Fixed by #5
Closed

contract bundle too large when built from npm #4

dckc opened this issue Dec 28, 2023 · 1 comment · Fixed by #5

Comments

@dckc
Copy link
Contributor

dckc commented Dec 28, 2023

In #2 , I'm trying to get dependencies from npm instead of from a linked agoric-sdk (using agoric install). It works for testing, but it produces a contract bundle around 4.5mb -- in particular, >1mb when compressed, so we get Invalid Request: error reading request body: http: request body too large.

Lots of modules are duplicated. promise-kit is duplicated about 15 times. Most likely due to...

work-around:
if delete all the node_modules directories and agoric install from the top dir and then build the bundle, I get something 1.6M

for some details, see https://github.com/agoric-labs/dapp-swaparoo/releases/tag/v0.1.1-alpha

@dckc
Copy link
Contributor Author

dckc commented Dec 29, 2023

fixed in #5

@dckc dckc closed this as completed Dec 29, 2023
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 a pull request may close this issue.

1 participant