Skip to content

Propose new list of packages in the monorepo to reduce code split #204

@spalladino

Description

@spalladino

We currently have around two dozen packages, and interdependencies between them are hard to track. For instance, we already agreed on merging some of them like l2-block and tx into a single one, but we can go further.

Review the list of packages we have today, make a new proposal, get buy in, and implement it. Things to consider:

  • Which packages map to low-level repos (eg bb, circuits.js)
  • Which packages have shared code vs entrypoints (consider moving them to separate parent folders, as suggested here)
  • Which packages will eventually run on the browser, on node, or both

A modern alternative is bundling everything in 1-2 major packages, and make an aggressive use of namespaces, and rely on tree shaking from consumers for reducing bundle size.

Metadata

Metadata

Assignees

Labels

A-internal-devexArea: Relates to the devex of internal teams building Aztec.T-refactorType: this code needs refactoring

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions