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

chore: Better bundling for bb.js, remove aztec.js bundling #11761

Merged
merged 10 commits into from
Feb 5, 2025

Conversation

Thunkar
Copy link
Contributor

@Thunkar Thunkar commented Feb 5, 2025

Improves bb.js bundling by providing lazily loaded gzipped wasm artifacts that get included with the library as plain old .js files via inlining. This combines the previous "inline all the things in a big file" approach (with its convenience advantage) with the new lazy loading approach that reduces load time and bundle sizes.

This has rendered bundling aztec.js unnecessary. Also the bundle wasn't used downstream due to the output main.js file not being exposed anywhere. It should allow external bundlers to tree-shake efficiently and streamline our build process.

Started aztec.js refactor to try and prune some of the l1 stuff

@Thunkar Thunkar added e2e-all CI: Enables this CI job. e2e-browser CI: Enables this CI job. labels Feb 5, 2025
@Thunkar Thunkar requested review from alexghr and charlielye February 5, 2025 17:11
@Thunkar Thunkar self-assigned this Feb 5, 2025
@Thunkar Thunkar enabled auto-merge (squash) February 5, 2025 18:16
@Thunkar Thunkar merged commit 8cc3f0a into master Feb 5, 2025
81 checks passed
@Thunkar Thunkar deleted the gj/better_bundling branch February 5, 2025 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e2e-all CI: Enables this CI job. e2e-browser CI: Enables this CI job.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants